[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?Page 1 / 1
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?If you for instance want to have a message box display if you execute under the debugger:
Change this:
DISPLAY MESSAGE BOX "With debugger!".
to:
D DISPLAY MESSAGE BOX "With debugger!".
(Note that the D is supposed to be in column 7 and DISPLAY starts in column 12... I intended to format this better, but this editor isn't my pal today... )
and compile with -Sd in addition to -Zd.
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?It's an odd request, but I have a need to start another runtime to run something, and I would like the second runtime to have the debugger on if the original runtime had the debugger on, and vice versa.
I can't use CALL RUN because I need the two runtimes to execute simultaneously, and I don't want to use threads because I would have to do some major restructuring of some things because of some global external variables that are used, so starting a second runtime keeps things simple.
(Now, if I could do CALL RUN IN THREAD.....)
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?Like...
SET DEBUG-MODE = 1
wrun32 -d myapp
inside the app:
ACCEPT DBG FROM ENVIRONMENT ...
and so on...
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?Like...
SET DEBUG-MODE = 1
wrun32 -d myapp
inside the app:
ACCEPT DBG FROM ENVIRONMENT ...
and so on...
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?Like...
SET DEBUG-MODE = 1
wrun32 -d myapp
inside the app:
ACCEPT DBG FROM ENVIRONMENT ...
and so on...
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?ACCEPT ws-item FROM COMMAND-LINE
This will return the value of the command line that was used to start the run unit. From here you can inspect the item returned and see if the debugger option (-d) was used within the original command line.
[Migrated content. Thread originally posted on 05 April 2004]
Is it possible to know at runtime whether or not the debugger is enabled (-d used on the command line)?If I execute: wrun32 -d myprog.acu a b c
then ACCEPT FROM COMMAND-LINE only returns "a b c".
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.