Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Debugger plug-in: Considering adding breakpoints while running
MortenMacFly:
I don't know what you are all talking about... At least on Windows, adding/removing a breakpoint while already debugging works just fine. I do it every day...?! Might someone enlighten me? Is this a Linux issue?!
DrewBoo:
--- Quote from: MortenMacFly on March 14, 2008, 05:10:20 pm ---I don't know what you are all talking about... At least on Windows, adding/removing a breakpoint while already debugging works just fine. I do it every day...?! Might someone enlighten me? Is this a Linux issue?!
--- End quote ---
Using the GDB debugger plug-in, if the debugger is running (not just in "debug mode", mind you, but the debug target is currently running) my attempts to add a breakpoint are ignored.
If I click on the left margin, nothing happens.
It does work however if I pause the debugger, add the breakpoint, then resume.
You can see why this is if you look in debuggergdb.cpp. All of the breakpoint editing functions begin with this
--- Code: --- if (!IsStopped())
return false;
--- End code ---
MortenMacFly:
--- Quote from: DrewBoo on March 14, 2008, 05:21:25 pm ---Using the GDB debugger plug-in, if the debugger is running (not just in "debug mode", mind you, but the debug target is currently running) my attempts to add a breakpoint are ignored.
--- End quote ---
I am telling you: I *am* in debug mode and I *am* in the process of debugging an application (e.g. a BP has just hit). And while doing this I can just add/remove BP's on the fly. Just as I said. Shall I make a video or what?!
Probably it would be of help if you provide me with a project & step-by-step explanation to reproduce.
DrewBoo:
--- Quote from: MortenMacFly on March 14, 2008, 07:21:20 pm ---I am telling you: I *am* in debug mode and I *am* in the process of debugging an application (e.g. a BP has just hit). And while doing this I can just add/remove BP's on the fly. Just as I said. Shall I make a video or what?!
--- End quote ---
I believe you! I believe you! :lol:
Note that you said "a BP has just hit". What the rest of us are talking about is if a breakpoint hadn't just hit. What if there were no breakpoints...the program was just running...and you wanted to add one?
Put another way, when debugging you can only edit breakpoints while the debugger is paused.
MortenMacFly:
--- Quote from: DrewBoo on March 14, 2008, 07:35:22 pm ---Note that you said "a BP has just hit". What the rest of us are talking about is if a breakpoint hadn't just hit. What if there were no breakpoints...the program was just running...and you wanted to add one?
Put another way, when debugging you can only edit breakpoints while the debugger is paused.
--- End quote ---
Ah - OK. Confirmed... Phew... that was a hard way to go. I was already under the assumption I am a complete idiot. ;-)
Navigation
[0] Message Index
[*] Previous page
Go to full version