December 03, 2020, 12:16:09 pm

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Debugging 2d/3d programs

Started by sapero, March 30, 2011, 11:57:15 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sapero

March 30, 2011, 11:57:15 am Last Edit: March 30, 2011, 12:09:22 pm by sapero
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