conditional-breakpoint

Why does Conditional breakpoint decrease the application execution speed at debug time?

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...

how can I put a breakpoint on "something is printed to the terminal" in gdb?

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...

Visual Studio - Runtime impact of conditional and disabled breakpoints

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...

Why is my Breakpoint Condition not being met when my Breakpoint Condition is being met in Visual Studio?

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 ...

C++: watch a memory location/install 'data breakpoint' from code?

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...

how to create conditional breakpoint with std::string

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 ...

Using tuples in conditional breakpoints in Visual Studio 2010

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. ...

Conditional Debug on Visual C++ 2008 Express

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? ...

Conditional breakpoint in Visual Studio

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. ...

How to put a breakpoint at the end of a function in windbg, so that I dont need to edit it even if some lines have been added/deleted in the source?

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...

Can XCode break when data ata memory location changes

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 ...

Visual Studio 2005 : Break when a value appears

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 ...

Put breakpoint on named function

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 ...