visual studio 2003 debugger shows string escape codes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Felix

    #1

    visual studio 2003 debugger shows string escape codes

    If I set a breakpoint in visual studio 2000 and viewed a local
    variable (in the "locals" panel), I would see something like:

    sql | "
    SELECT
    Operator.FirstN ame,
    ....

    now I am using visual studio 2003, I see something like:

    sql | "\r\nSELECT \r\n\t\t\tOpera tor.FirstName, ...

    I often cut and paste such statements into sql query analyzer ... it
    would be helpful to get back the old view.

    Any ideas would be very helpful.

    Thanks!

    Felix
  • Victor Urnyshev [MSFT]

    #2
    RE: visual studio 2003 debugger shows string escape codes

    Felix,

    I don't think that you can make Watch window showing strings in the way you
    need. I can propose one workaround, although it is not very nice:

    In command window, type in:
    Clipboard.SetDa taObject(myStri ng, true)

    It should place the content of the string into clipboard and you can paste
    it in other application. It should be possible to write a macro that does
    this thing for you.

    Hope this helps.

    --
    Victor Urnyshev [MSFT]
    This post is "AS IS" with no warranties, and confers no rights.
    --------------------
    |From: felix666007_no_ solicitation@ya hoo.com (Felix)
    |Newsgroups: microsoft.publi c.dotnet.genera l
    |Subject: visual studio 2003 debugger shows string escape codes
    |Date: 1 Jun 2004 14:47:04 -0700
    |Organization: http://groups.google.com
    |Lines: 20
    |Message-ID: <80c2794f.04060 11347.7627e4e4@ posting.google. com>
    |NNTP-Posting-Host: 66.58.11.82
    |Content-Type: text/plain; charset=ISO-8859-1
    |Content-Transfer-Encoding: 8bit
    |X-Trace: posting.google. com 1086126424 5596 127.0.0.1 (1 Jun 2004 21:47:04
    GMT)
    |X-Complaints-To: groups-abuse@google.co m
    |NNTP-Posting-Date: Tue, 1 Jun 2004 21:47:04 +0000 (UTC)
    |Path:
    cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
    ul.t-online.de!t-online.de!news. glorb.com!postn ews1.google.com !not-for-mail
    |Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.genera l:135879
    |X-Tomcat-NG: microsoft.publi c.dotnet.genera l
    |
    |If I set a breakpoint in visual studio 2000 and viewed a local
    |variable (in the "locals" panel), I would see something like:
    |
    |sql | "
    | SELECT
    | Operator.FirstN ame,
    |...
    |
    |now I am using visual studio 2003, I see something like:
    |
    |sql | "\r\nSELECT \r\n\t\t\tOpera tor.FirstName, ...
    |
    |I often cut and paste such statements into sql query analyzer ... it
    |would be helpful to get back the old view.
    |
    |Any ideas would be very helpful.
    |
    |Thanks!
    |
    |Felix
    |

    Comment

    • jeff

      #3
      Re: visual studio 2003 debugger shows string escape codes

      I got this from a different group:
      From the VS 2003 directory, go to
      Common7\Package s\Debugger and open mcee_cs.dat in notepad. there is
      documentation in that file for how to modify it. I've already added
      several
      of them for my types. you have to restart VS to get them to work.



      On 1 Jun 2004 14:47:04 -0700, felix666007_no_ solicitation@ya hoo.com
      (Felix) wrote:
      [color=blue]
      >If I set a breakpoint in visual studio 2000 and viewed a local
      >variable (in the "locals" panel), I would see something like:
      >
      >sql | "
      > SELECT
      > Operator.FirstN ame,
      >...
      >
      >now I am using visual studio 2003, I see something like:
      >
      >sql | "\r\nSELECT \r\n\t\t\tOpera tor.FirstName, ...
      >
      >I often cut and paste such statements into sql query analyzer ... it
      >would be helpful to get back the old view.
      >
      >Any ideas would be very helpful.
      >
      >Thanks!
      >
      >Felix[/color]

      Comment

      Working...