Can Desktop application output DebugLog calls from built app?

I’m trying to debug passing command line arguments passed while launching a built Windows desktop application, which I’m running via the CMD command line.

My command line parsing works great when running a DEBUG version in the IDE, and the built .exe does launch via the CMD command line, but I need to get any kind of debugging output listed on-screen so I can see what’s going on (my .exe crashes with no error messages before the UI is displayed).

Any way to get system.debuglog to work when running a built .exe from the Windows command line?

I’m not sure but there is also a “System.Log” method too.

1 Like

Ian, that DOES work, thanks!

On Windows, you can view the system.debuglog calls in the DebugView app from Windows SysInternals package.

3 Likes

@Tim_Hare – That’s fantastic! Exactly the right solution!

It may be a good idea to read the LR page here:

https://documentation.xojo.com/api/os/system.html#system-debuglog

Get DebugView from microsoft, it functions kind of like Console.app on macOS

I actually DID read that page at least a half dozen times. But this sentence threw me:

On Windows, it logs to the debugger, so programs like DebugView can be used to view the string.

“It logs to the debugger” made it seem it was referring to Xojo’s debugger in the Xojo IDE. So I thought, well, I’m running OUTSIDE the IDE — so that doesn’t apply.

I have obtained DebugView and it is exactly what I needed.

Thanks!