Stop () command for debugger

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Stop () command for debugger

Post by Lunasole »

I'm often comparing PB to VB6 and C, so that wish is again VB6-inspired ^^
The PB debugger lib is awesome and has functional close to JetBrains C++ IDEs, but anyway there are little usability-related things missing which can make it even better.

VB6 has "Stop" command - additional form of breakpoint, stopping program execution for debug when it executed.
It was more handy and useful in many cases than using simple breakpoint.

Now in PB without it you have to write such thing to stop at special condition:

Code: Select all

					If PID = 2600 ; exporer
						SomeShitToSetBreakpointOnIt ()
					EndIf
And then additionaly setting breakpoint to that trash code, cause setting it to if/end if is not what you need.

vs

Code: Select all

					If PID = 2600 ; exporer
						Stop () ; and hit Debugger > Continue to continue
					EndIf
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Stop () command for debugger

Post by STARGÅTE »

Do you mean: CallDebugger
This invokes the "debugger" and freezes the program immediately.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Stop () command for debugger

Post by Lunasole »

STARGÅTE wrote:Do you mean: CallDebugger
This invokes the "debugger" and freezes the program immediately.
Yes :/
Didn't seen it in docs yet, don't know why
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Post Reply