473,651 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 21 '05 #1
2 2402
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: fe************* ************@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: <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**********@go ogle.com
|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
|

Jul 21 '05 #2
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, fe************* ************@ya hoo.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.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


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1416
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 process. This works great when the client and my server drone are the same machine, but as soon as I deploy I can not do this remotely. Does anybody have any suggestions on how I can enhance this so I can attach to a remote server process when...
18
7178
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 QID=\"55111\"><Tag2 AID=\"5511101\"></Tag2></Tag1><Tag1 QID=\"55112\"><Tag2 AID=\"5511217\"></Tag2></Tag1><Tag1 QID=\"5512282\"><Tag2 AID=\"551228206\"></Tag2></Tag1><Tag1 QID=\"55114\"><Tag2 AID=\"5511406\"></Tag2></Tag1><Tag1 QID=\"55115\"><Tag2
26
10848
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 compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
34
1705
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 differences. Ok, Visual Studio has C++, VB and J++ thrown in plus some extra bells and whistles (I already have some minimal experience) but are both IDE's essentially the same (including the same IDE support for creating forms, ADO.NET DataSets,...
24
2809
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 the pros and cons of these two environments for a straight C++ windows app. Does VS .NET get me a better compiler? How? The managed code features are of no interest in the foreseeable future. Thanks,
2
324
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 studio 2003, I see something like:
12
5901
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/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
3
2956
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 2008 as well) If I put a breakpoint in a .js file, the debugger picks it up and breaks into it at that point.
0
7324
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 beginning CIS student who is struggling to get their programs working. I work in the computer lab at the college I'm attending and I see many students who don't know how to use the IDE for best results. Visual Studio automatically creates a number of...
0
8802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5612
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.