Implemented for the next release: System.IsDebuggerAttached.
https://feedback.objo.dev/feature/395
This is a read-only Boolean property that returns True when the current app is running with a debugger attached, such as when running from Objo Studio’s debugger or in a remote debug session.
Example:
If System.IsDebuggerAttached Then
System.ErrorPrint("Detailed diagnostics enabled.")
End If
I made this a property rather than a method because it reports state and has no side effects. It specifically means “debugger attached”, not “debug build”.