Hi MicroStation Programmers,
I am supporting a Pure MDL application (compiled with mcomp, etc) in V8i. How can I debug it? What tool can I use?
I tried to find a way to debug in the SDK programmer's guide, but didn't find too much beside the instruction of adding the "DEBUG" keyword in "MDL LOAD" key-in command.
Is there other tool or instruction that can help me?
Thank you!
Sui Huang said:I tried to find a way to debug in the SDK programmer's guide
Search help for keyword debug. Here's the first of several sections about debugging in the MDL Programmer's Guide.
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 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.
This answers your question about debugging MDL in MicroStation V8i and earlier. With MicroStation CONNECT, we can use the Viz Studio debugger for .NET and C++ development.
Regards, Jon Summers LA Solutions
Jon Summers said:This answers your question about debugging MDL in MicroStation V8i and earlier. With MicroStation CONNECT, we can use the Viz Studio debugger for .NET and C++ development.
This is not precise formulation in my opinion. It's possible to use Visual Studio debugger in V8i without any issue as well! The only unsupported option is the discussed MDL pseudocode.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point