By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!@setlocal
@echo off
if defined BATCH_DEBUGGING echo BATCH_DEBUGGING exists in the environment.
if %BATCH_DEBUGGING eq 1 echo BATCH_DEBUGGING equals 1. You are debugging a batch file.
if %_BDEBUGGER eq 1 echo _BDEBUGGER equals %_BDEBUGGER. You are debugging a batch file.
endlocal
quit
@setlocal
@echo off
set BATCH_DEBUGGING=abc
if defined BATCH_DEBUGGING echo BATCH_DEBUGGING exists in the environment.
if %BATCH_DEBUGGING eq 1 echo BATCH_DEBUGGING equals 1. You are debugging a batch file.
set _BDEBUGGER=9
if %_BDEBUGGER eq 1 echo _BDEBUGGER equals %_BDEBUGGER. You are debugging a batch file.
endlocal
quit
Well, I thought it had to be something like that, and it's not all that important, but couldn't BDEBUGGER produce BATCH_DEBUGGING when debugging a BAT file and refrain from doing so when debugging a BTM file?