MDL Debugging

Status
Not open for further replies.
I do not know which is the best way. But I do this task as following:

1). I use a editor which can display line number such as UltraEdit to code my MDL source;
2). In order to debug a program, I make it with OS command line bmake xxx.mke -ddebug
3). In MicroStation keyin field, I keyed in
mdl load debug xxx ('mdl l d xxx' is an shortness)
4). Then I use some MDL debug command such as 'step', 'go', 'display' and 'quit' do my all kinds of debug task. For example, there is a program which is consist of 'main.mc', 'sub1.mc', 'sub2.mc' and other source files. Now I want goto sub1.mc's line 200. You can do this by the following command:
g "sub1.mc"200
then you can use cmd 'step' or 'step/in' to step forward, use cmd 'display' to view variables value.

Foo.
 
Sachin ...

Which is the best way of debugging a MDL program.
The function mdlDialog_dmsgsPrint ("trace message"); is very useful.

It pops a message dialog that lets you display messages to trace the progress of your code.
 
On Thu, 20 Dec 2001 09:16:21 -0000, "Jon Summers"
wrote:

Sachin ...

> Which is the best way of debugging a MDL program.
The function mdlDialog_dmsgsPrint ("trace message"); is very useful.

It pops a message dialog that lets you display messages to trace the progress of your code.

mdl Debugger is a powerful tool:

mdl load de my_mdl.ma

HTH,

Kirmo Uusitalo
 
Status
Not open for further replies.

Latest threads

Back
Top