TCC > Variables & Functions > Variables:
Comments (...)
_BDEBUGGER returns 1 if the batch debugger is actively debugging a file, or 0 if it is not.
Help URL: http://jpsoft.com/help/index.htm?_bdebugger.htm