473,224 Members | 1,347 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,224 software developers and data experts.

Break on Conditional String Instantiation

Does anyone know if there is a way to force the studio debugging to break at
any line of code when any string is initialized with a certain value?

In this case I inherited a badly written app and it would really help to say
to the debugger, stop when ANY string = "foo". I won't know when (what line)
it will happen.

any thoughts or any plugins that anyone knows of to listen to the clr for
this type of event?

Thanks


Aug 22 '08 #1
1 1469
On Fri, 22 Aug 2008 11:04:02 -0700, a <a@discussions.microsoft.comwrote:
Does anyone know if there is a way to force the studio debugging to
break at
any line of code when any string is initialized with a certain value?
I haven't tried the code downloading that Microsoft started allowing
earlier this year, but my recollection is that it provides source-level
debugging for the .NET Framework.

Assuming that's true, then you could install the .NET source download
stuff (however that works), and then set your conditional breakpoint in
the String class where it's initialized.

I think that's the only practical approach. Anything else is likely to be
too slow, as the debugger would have to single-step through each
statement. That's assuming you could configure the debugger to do that; I
don't know if it still supports that, not having done anything like that
in years myself.

Pete
Aug 22 '08 #2

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

Similar topics

26
by: Chris Potter | last post by:
Hello everyone. I am taking my first course in C and in one of my assignments i need to print out an array that could have anywhere from 0 to 100 positive integers in it (a negative integer is...
6
by: Marc Jennings | last post by:
Hi there, I am trying to get some conditional functionality into some of my apps. I can use the format : private void doStuff() { //do something }
1
by: Jim Heavey | last post by:
I have a couple of questions about break points. I have this one ASPX page which had a breakpoint set on a particular line and I am unable to get rid of it. If I look at the line in which the...
2
by: ichor | last post by:
hi i want to add a conditional break in my vb.net code. like we could in vb6. for example if the counter = 10 then break at that point. kindly let me know if thats possible in vb.net Ichor
44
by: petermichaux | last post by:
Hi, I have been using the following line of code to create an object called "Serious" if it doesn't already exist. if (Serious == null) {var Serious = {};} This works in the scripts I use...
12
by: arnuld | last post by:
in C++ Primer 4/3 Lippman says in chapter 3, section 3.3.1: vector<stringsvec(10); // 10 elements, each an empty string here is the the code output & output from my Debian box running "gcc...
4
by: =?Utf-8?B?Sm9obiBCZXNjaGxlcg==?= | last post by:
I work in a shop with up to three environments for the development/deployment process. Each environment has its own db and web servers and its own web services servers as well. I am developing...
5
by: jayapal | last post by:
Hi the scenario is like this: func() { .... .... char *p= (char *)&str;
7
by: Frank Munsberg | last post by:
Hi There, I'm currently in a mild state of confusion about the Conditional Attribute. The code below is taken from the implementation of "Design By Contract" that I've put in somewhere in my...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.