Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Debugger plug-in: Considering adding breakpoints while running

(1/2) > >>

DrewBoo:
The debugger plug-in currently disallows adding breakpoints while the debugger is running.

I was considering (at least for my own build) allowing the addition of breakpoints on the fly where it would stop the debugger, and if successful at that, add the breakpoint and immediately resume.

Has this been tried before?

Are there tricky considerations that I maybe haven't thought of?

Would this perhaps be worth adding to the C::B trunk? 

dje:
Hi !

It is partially true.
You can pause the debugger, put your breakpoint and resume it.

Dje

DrewBoo:

--- Quote from: dje on March 14, 2008, 01:00:48 pm ---It is partially true.
You can pause the debugger, put your breakpoint and resume it.

--- End quote ---

Hi, Dje.

Yes, I do that now.   :)

I was asking from an interface perspective.  Seeing how, as you describe, it's always possible to add a breakpoint..but sometimes it's one step and sometimes it's three steps.

I suspect it would be easy for me to change the plugin so it's always the same one step, nice and fluid and consistent.  Click, bam, done.  I figured before I dove in I would ask if there was any technical reason that it's not like that now.  Wisdom of the masses, ya know?   :)

Disclaimer: I'm a professional interface snob.

killerbot:
I think a one time 'add breakpoint' is what we need.
The other IDE's I use (Code Composer Studio, Developer Studio) do it like that too.

No matter how it looks on the inside [you need to pause GDB ?, then you can tell GDB there's a new breakpoint ? then have GDB continue/resume ?] this should be hidden from the user. The user wants to add a breakpoint [simple as that], he couldn't care less if this is a 1 step deal, or 3 step, or 100 steps for that matter. You just don't want the user to do all those steps.

This has been one of the things that have driven me crazy ;-)

DrewBoo:

--- Quote from: killerbot on March 14, 2008, 03:19:57 pm ---I think a one time 'add breakpoint' is what we need.

This has been one of the things that have driven me crazy ;-)

--- End quote ---

Done!

I'll post the patch once I've had time to give it more testing.   :D

Navigation

[0] Message Index

[#] Next page

Go to full version