By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,257 Members | 928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,257 IT Pros & Developers. It's quick & easy.

visual studio 2003 debugger shows string escape codes

P: n/a
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
Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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: fe*************************@yahoo.com (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: <80**************************@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: gr**********@google.com
|NNTP-Posting-Date: Tue, 1 Jun 2004 21:47:04 +0000 (UTC)
|Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.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
|

Jul 21 '05 #2

P: n/a
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.

On 1 Jun 2004 14:47:04 -0700, fe*************************@yahoo.com
(Felix) wrote:
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


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.