January 26, 2021, 02:41:54 pm

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