Easiest Way for an App to Determine Whether It Is Running in a Debugger?

Started by raleeper, April 21, 2012, 12:13:49 PM

Previous topic - Next topic

raleeper

Quote from: jj2007 on April 22, 2012, 12:04:46 AM
It's @FileName:

ifidni @FileName, <lfwStable>
% echo @FileName is the stable one
.err
endif


Doesn't work for me because the filename is always "lfw.asm" regardless of version.  I could change that, of course, but I can also do what dedndave first suggested:
RalDebug = 1 ;set to 0 if debugging

or as I will actually do:
StableVer = 1    ;for the stable version...
    (etc.)


Using different filenames might simplify keeping track of the different versions, but it would complicate the assembly (I'd have to have a separate batch file to assemble lfwStable).

Thanks, Robert