March 29, 2024, 05:17:18 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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:
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