When I use conditional breakpoint in VS2005 instead of using temporary code to check specific conditions, I noticed it takes more time and the execution speed is decreased!!
Do you know why? and how to resolve this issue?
Exmaple:
int sequence = atoi(m_SequenceNumber.GetAscii());
if( sequence == 392914)//temporary code to check...
I would like to know from where inside a huge application a certain message is printed. The application is so big and old that it uses all conceivable ways of printing text to the terminal; for example printf(), fprintf(stdout, ...) etc.
I write to put a breakpoint on the write() system call but then I'm flooded with too many breakpoint...
After spending a little time wondering why my app was running a particular scenario very slowly with the debugger attached, I discovered that this was due to having a conditional breakpoint (whose condition was never being met). This seems reasonable, as the CPU would signal the breakpoint and VS would need to evaluate the condition bef...
I have a piece of code in front of me that iterates through a long list of urls and something is going wrong when those urls include a certain type of document. I don't want to see every iteration, so I've set up a conditional breakpoint.
The trouble is that I'm not a C++ programmer so I'm slightly having to fish around to work out how ...
Hi everyone
We have a memory overwrite problem. At some point, during the course of our program, a memory location is being overwritten and causing our program to crash. the problem happens only in release mode. when in debug, all is well.
that is a classic C/C++ bug, and a very hard one to locate.
I wondered if there's a way to add s...
Suppose I have this function:
std::string Func1 (std::string myString)
{
//do some string processing
std::string newString == Func2(myString)
return newString;
}
how do I set a conditional break when newString has a specific value ? (without changing the source)
setting a condition newString == "my value"
didn't work ...
Will this be possible? In F# or C#? Both?
For example, I would like to set a conditional breakpoint in a F# program like that:
[x] Condition:
myTuple == (3,3)
(o) Is true
(_) Has changed
Thanks.
...
Is there a way to debug code on Visual C++ 2008 Express, such as I can watch a variable for certain value(s) and, when it assumes this value, to break?
For instance, I want to break when xbecomes 5. In gdb I would set a breakpoint then a condition that x == 5. How can I do it (if possible) on Visual C++ 2008 Express?
...
I want to set breakpoint on certain line in C# code
when some other variable is equal to specific value
say MyStringVariable == "LKOH"
Please suggest. I tried right click on breakpoint icon->Condition
then typed MyStringVariable == "LKOH" and Visual Studio is saying cannot evalute.
...
I need to log some data when some functions are hit, both at the start of execution and and the end of it. While i have no problem with putting breakpoints at the start of the functions(using bu [module]!functionname, I dont know how to put a breakpoint at the end of a function, SUCH THAT i dont need to edit the breakpoint everytime i ad...
Visual Studio has always been able to do this - if you know a mem loc then you can set conditional breakpoints when that mem loc's value changes to a particular value or changes at all. Is that what Symbolic breakpoints are for in XCode? If so, I cannot see how to do this.
Thx,
Tom
...
Hi,
I'm trying to simplify my debugging tasks and I had an idea which could increase my debugging speed.
Suppose I have a value, say 2.8651 that appear in the code at a moment I do not know.
I'm wondering if it was possible to create a super breakpoint which would stop at the first time one of the variable takes this value.
I recall ...
Is there a way to put a breakpoint on any function in Visual Studio, sort of like bm kernel32!LoadLib* in WinDbg?
I know one way is to break at application start, find the required DLL load address, then add offset to required function you can get via Depends, and create a breakpoint on address. But that's really slow, and switching to ...