User forums > Help

Breakpoints during running

(1/2) > >>

Baco:
I'm trying to debug a win32 gui application.
I'm using the NB 3989 with the mingw bundled with the CB RC2 (gdb 6.3).
I cant set a new breakpoint when the application is in running state.
It is really not possible to set a new breakpoint when the application is running?

rickg22:
I haven't studied the debugging plugin very well, but setting breakpoints depends on GDB, and when the app's running, GDB's coordinating so it can't set breakpoints (AFAIK). However, they could be queued.  Have you tried setting a breakpoint, pausing the app and see if the breakpoint is effectively set?

In any case, please submit it as a feature request in Berlios.

MortenMacFly:

--- Quote from: Baco on June 02, 2007, 08:22:02 pm ---I'm using the NB 3989 with the mingw bundled with the CB RC2 (gdb 6.3).

--- End quote ---
Before submitting a feature request please try a nightly build (there is a forum section accordingly). Concerning the debugger an awful lot of work has been done meanwhile and I'm pretty sure this wouln't happen with a more recent C::B revision.
With regards, Morten.

byo:
There IS possibility to add breakpoint while program is running.

You just have to stop it for a few seconds, add breakpoint and resume execution.

First one can be achieved by pressing the (X) button in debugger toolbar (when it's pressed for the first time, it breaks the execution, but when you press it second time it will kill the program so be carefull with it). Adding breakpoint and resuming should be quite easy then.

Regards
   BYO

Baco:
Thank you byo for the workaround.

So as you said is not possible to add breakpoints while program is running: you have to stop it and then resume execution.

I cant believe that! :shock:
All the debuggers i have ever tried had this feature.

Navigation

[0] Message Index

[#] Next page

Go to full version