Disabledebugger/Enabledebugger => IsDebuggerDisabled

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Disabledebugger/Enabledebugger => IsDebuggerDisabled

Post by Josh »

I would like to be able to query the status of DisableDebugger/EnableDebugger. Alternatively an internal counter would be possible, which executes EnableDebugger only when the internal counter is zero again.

Background for my request:

I like to use Disabledebugger/Enabledebugger inside macros to make debugging smoother:

Code: Select all

Macro MyMacro
  DisableDebugger
  a=1
  b=2
  EnableDebugger
  c=3
EndMacro

CallDebugger

MyMacro
Debug b
On the other hand, I also set whole includefiles inside DisableDebugger/EnableDebugger, because it only contains procedures that are so trite that I don't want to debug through them.

However, if I use one of my macros as above within these procedures, the EnableDebugger from the macro destroys my system.
sorry for my bad english
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Disabledebugger/Enabledebugger => IsDebuggerDisabled

Post by RSBasic »

+1
Image
Image
Post Reply