Debugging executables
Posted: Thu Dec 16, 2004 10:05 pm
I'd like to see an compiler option that allows using debug output in the final executable, using the API call OutputDebugString.
So, with debugger enabled and running from within PB, everything behaves as usual.
Now when you compile it, with the original Debugger option enabled but also having set the new "OutputDebugString" option, the compiler transforms the code to
and finally compiles it.
Using Debugview from Sysinternals, one can easily track down troubles in the executable that probably don't show when using the PB debugger.
Nothing important as one is already able to do it manually, but would make a nice feature and some less work.
Code: Select all
a=1
debug a
Now when you compile it, with the original Debugger option enabled but also having set the new "OutputDebugString" option, the compiler transforms the code to
Code: Select all
a=1
OutputDebugString_ (str(a))
Using Debugview from Sysinternals, one can easily track down troubles in the executable that probably don't show when using the PB debugger.
Nothing important as one is already able to do it manually, but would make a nice feature and some less work.