473,320 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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.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
2 2369
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik | last post by:
I have written an add in to the IDE that fires an event to check for processes that have started up that are in a user specified list. If one of them is found it will attach the debugger to the...
18
by: Steve Litvack | last post by:
Hello, I have built an XMLDocument object instance and I get the following string when I examine the InnerXml property: <?xml version=\"1.0\"?><ROOT><UserData UserID=\"2282\"><Tag1...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
34
by: John Timbers | last post by:
I'd like to purchase Visual C# .Net for learning purposes only since it's a lot cheaper than Visual Studio (note that I'm a very experienced C++ developer). Can someone simply clarify the basic...
24
by: Paul Schauble | last post by:
I'm about to move a moderately large program from a different environment onto Windows. The program is written in C++ I have a choice of Visual Studio 6 or Visual Studio .NET 2002. What are...
2
by: Felix | last post by:
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...
12
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/...
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.