Page 1 of 1

quick debug code

Posted: Sat Apr 05, 2008 11:17 am
by DoubleDutch
This macro is handy for quickly including a single line in a debug mode compile.

Code: Select all

Macro dbug(programline)
	If #PB_Compiler_Debugger
		programline
	EndIf
EndMacro

text$="in production mode"
dbug(text$="in debug mode")
MessageRequester("dbug test",text$)

Posted: Sat Apr 05, 2008 11:29 am
by #NULL
nice idea :)

..not just for single lines. (cheating :P )

Code: Select all

Macro dbug(programline)
  If #PB_Compiler_Debugger
    programline
  EndIf
EndMacro

text$="in production mode"

Macro more()
  text$="in"
  text$+" debug mode"
  text$+" mode"
EndMacro

dbug(more())
MessageRequester("dbug test",text$)