Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
mscript_debugging [2020/04/26 03:33] 127.0.0.1 external edit |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Debugging MScript===== | ||
- | |||
- | Often times you may need to step through MScript and see how each line of MScript does to AUT. | ||
- | |||
- | You can pause the execution at any MScript and advance the execution one MScript line at a time. While execution is paused, you can then examine the AUT and even execution some ad-hoc MScript to help debug any issues you may have. | ||
- | |||
- | There are several ways you can step through MScript as described in the following sections. | ||
- | |||
- | ==== Set Breakpoints==== | ||
- | |||
- | You can set breakpoint on a specific MScript line or on a state or transition. | ||
- | |||
- | To set a breakpoint at a specific MScript, open the MScript for the model by right mouse clicking on the //Model// node and selecting // | ||
- | |||
- | Right mouse click on the line# to the left of the MScript line you wish to add breakpoint at and select //Toggle Breakpoint// | ||
- | |||
- | You can set as many breakpoints as you need. | ||
- | |||
- | Next time when model is executed in debug mode {{http:// | ||
- | |||
- | Click on {{http:// | ||
- | |||
- | |||
- | ==== Step Next Line ==== | ||
- | |||
- | You can step over current MScript line and have execution paused at the next MScript line by pressing the next MScript button {{http:// | ||
- | |||
- | |||
- | ==== Run To Specific MScript Line ==== | ||
- | |||
- | You can advance the execution from current breakpoint and have the execution paused at a specific MScript line identified by the line number by pressing {{http:// | ||
- | |||
- | |||
- | ==== Skip N Line ==== | ||
- | |||
- | You can advance the execution by a specific number of MScript lines by pressing {{http:// | ||
- | |||
- | ==== AdHoc MScript ==== | ||
- | |||
- | When the model is paused by any of the above method, you can use [[MonitorTab|Monitor Tab]] to execute any ad-hoc MScript. To do so, enter the MScript in the //Exec MScript// field and click " | ||