Strange behaviour of DebugPrompt()
Posted: Wed Apr 05, 2023 7:15 pm
Hello Andreas,
under HW10, on Windows 10, the command DebugPrompt() is skipped but a value is assigned to its variable, here is an example:
The a & b variables gets some messed up strings, but they should be empty if DebugPrompt() has been really skipped.
ConsoleMode is ininfluent, DebugPrompt() is skipped anyway.
I've the same behaviour both on script & compiled app.
under HW10, on Windows 10, the command DebugPrompt() is skipped but a value is assigned to its variable, here is an example:
Code: Select all
@DISPLAY { Hidden = True }
@OPTIONS { EnableDebug = True, ConsoleMode = True }
DebugPrint("HELLO!") ; it works so OPTIONS is doing its job
@WARNING "warning" ; This works too
a=DebugPrompt("Debug prompt ?") ; <-- this is skipped!
b=DebugPrompt("Debug prompt ?") ; <-- this is skipped!
DebugPrint("A:", a, b)
ConsolePrompt("Console prompt ?") ; <-- this workConsoleMode is ininfluent, DebugPrompt() is skipped anyway.
I've the same behaviour both on script & compiled app.