The current 2.0 compiler has some undocumented support for local debugging of 2d/3d applications. If an exception occurs, the "screen" will be closed, and then the faulting thread will continue execution, allowing you to access the debugger, or click in the default crash-info-box.
2d syntax:
CREATESCREEN ...
DXTRY
' todo: the main program loop
DXENDTRY
Example: 2d samples/debugging.iwb
3d syntax (to be added):
C3DScreen s
s.CreateFullScreen ...
DXTRY s
' todo: the main program loop
DXENDTRY