IonicWind Software

IWBasic => 3D Programming => Topic started by: sapero on March 30, 2011, 11:57:15 am

Title: Debugging 2d/3d programs
Post by: sapero on March 30, 2011, 11:57:15 am
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:
Code Select
CREATESCREEN ...

DXTRY
' todo: the main program loop
DXENDTRY

Example: 2d samples/debugging.iwb


3d syntax (to be added):
Code Select
C3DScreen s
s.CreateFullScreen ...

DXTRY s
' todo: the main program loop
DXENDTRY