MDL V8 - Debugging


Debugging

The first time a particular MDL application is to be debugged, its name must be specified. To load an application and activate the MDL debugger from MicroStation, key in the following, where <application> is the application name:

 

MDL LOAD DEBUG <APPLICATION>

 

To debug a previously loaded application, key in the following:

 

MDL DEBUG [APPLICATION]

 

The application name is an optional part of the command, and need only be specified if the MDL application is unloaded, or another MDL application has been loaded since you last debugged the first application. If the application is loaded with the MDL LOAD command without the DEBUG modifier, MDL loads the symbol table before activating the debugger. Otherwise, it only activates the debugger. MDL DEBUG operates as an immediate command. It does not disrupt the state of the currently active MicroStation command.

 

It is possible to have debugging information loaded for more than 1 application at a time, but the debugger can only be in command mode for 1 application at a time. For example, it is possible to load 3 MDL applications with debugging, but when the debugger prompts for a command it is only possible to set breakpoints and display values for the same application.

 

The mdlSystem_enterDebug function activates the debugger from an MDL application. If the application does not have the debugging information loaded, MDL loads the symbol table.