visual studio 2003 debugger shows string escape codes

  • Thread starter Thread starter Felix
  • Start date Start date
F

Felix

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.FirstName,
....

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

sql | "\r\nSELECT \r\n\t\t\tOperator.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
 
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.SetDataObject(myString, 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: (e-mail address removed) (Felix)
|Newsgroups: microsoft.public.dotnet.general
|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: <[email protected]>
|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: (e-mail address removed)
|NNTP-Posting-Date: Tue, 1 Jun 2004 21:47:04 +0000 (UTC)
|Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mail
|Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.general:135879
|X-Tomcat-NG: microsoft.public.dotnet.general
|
|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.FirstName,
|...
|
|now I am using visual studio 2003, I see something like:
|
|sql | "\r\nSELECT \r\n\t\t\tOperator.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
|
 
I got this from a different group:
From the VS 2003 directory, go to
Common7\Packages\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.
 
Back
Top