Page 1 of 1

Disabledebugger/Enabledebugger => IsDebuggerDisabled

Posted: Fri Jul 05, 2019 2:02 pm
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.

Re: Disabledebugger/Enabledebugger => IsDebuggerDisabled

Posted: Fri Jul 05, 2019 2:04 pm
by RSBasic
+1