Keep debugger Toolbar icons enabled

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Keep debugger Toolbar icons enabled

Post by Tenaja »

I wish the debugger toolbar icons/buttons were always enabled. (Well, ok, I don't care about pause, continue and step.)

Having the Stop enabled full time would allow one-click to close debugger windows.

With the Variable Viewer and Watchlist buttons always enabled, it would allow one click to turn on/off those windows, rather than doing it every time you debug, or within the (many clicks to access) preferences.

This can't be a difficult or time consuming edit...in fact, it should be just deleting unnecessary code...?

Thanks.


[edit... Oops, I guess those Watch buttons would have to be turned into toggles, too... oh, well. It will still be very handy.]
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Keep debugger Toolbar icons enabled

Post by MachineCode »

Tenaja wrote:Having the Stop enabled full time would allow one-click to close debugger windows.
Can you post some example code where the Stop button is DISABLED when the code is running? Because I've never seen this.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Keep debugger Toolbar icons enabled

Post by Tenaja »

What I want is the Stop button Enabled, when the code is NOT running...as I said,
Having the Stop enabled full time would allow one-click to close debugger windows.
...because after a program is DONE running, there may still be many debug windows open.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Keep debugger Toolbar icons enabled

Post by moogle »

Tenaja wrote:...because after a program is DONE running, there may still be many debug windows open.
Perhaps then an option to close the debugger window when the application is killed would be better.

I don't see the point in having the button enabled when no programs are running.
Image
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Keep debugger Toolbar icons enabled

Post by MachineCode »

moogle wrote:Perhaps then an option to close the debugger window when the application is killed would be better.
The IDE already does that.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Keep debugger Toolbar icons enabled

Post by moogle »

MachineCode wrote:
moogle wrote:Perhaps then an option to close the debugger window when the application is killed would be better.
The IDE already does that.
True, I haven't used PB in a while :)

Well then this request doesn't look like it'll be supported by the majority then. I can't see the problem or use of it.
Image
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Keep debugger Toolbar icons enabled

Post by Tenaja »

moogle wrote:...I don't see the point in having the button enabled when no programs are running.
The point is so you can close "all" of the debugger windows with one click! Currently, you can't do that after the code is finished, unless you manually set up a shortcut. (Which I did... I just don't think it should be necessary for newbies to have to figure this out! It is not well documented, and having the button active all the time will not have adverse effects.)
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Keep debugger Toolbar icons enabled

Post by moogle »

Tenaja wrote:
moogle wrote:...I don't see the point in having the button enabled when no programs are running.
The point is so you can close "all" of the debugger windows with one click! Currently, you can't do that after the code is finished, unless you manually set up a shortcut. (Which I did... I just don't think it should be necessary for newbies to have to figure this out! It is not well documented, and having the button active all the time will not have adverse effects.)

Ahh well I don't have many debugger windows opened. Perhaps a close all debugger windows button instead would be better?
Image
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Keep debugger Toolbar icons enabled

Post by Tenaja »

Yes, that would work, but would likely require extra work... I was just suggesting a "quick & easy" addition to PB IDE that would be helpful.

I don't use the debuggers all the time, either...but when I do, I often have the CallStack, the Variable Viewer, the Watch Window, and also the Debug window open. (Recursive programming makes the CallStack appreciative.) It gets tedious closing all those windows so there's room to see the IDE.
Post Reply