在Debug选项卡,选择断点列表>调试模型显示调试器图形接口。
调试器工具栏出现在顶部的黛比ugger window.
从左到右,工具栏包含以下命令按钮:
按钮 | 目的 |
---|---|
进入下一个方法(请参阅步进命令有关此命令的更多信息以及以下阶梯命令)。 |
|
介绍下一个方法。 |
|
走出当前方法。 |
|
在下一个时间步骤开始时步骤到第一个方法。 |
|
步骤进入下一个块方法。 |
|
启动或继续模拟。 |
|
暂停模拟。 |
|
停止模拟。 |
|
在选定的块之前断裂。 |
|
执行时显示选定块的输入和输出(与 |
|
Display the current inputs and outputs of selected block (same as |
|
显示调试器的帮助。 |
|
关闭调试器。 |
To display the断点窗格,选择突破点在调试器窗口上的选项卡。
这断点窗格允许您指定阻止模拟的块方法或条件。看设置断点了解更多信息。
To display the仿真循环窗格,选择仿真循环在调试器窗口上的选项卡。
这仿真循环窗格包含三列:
方法
断点
ID
这方法列列出了迄今为止在模拟中被称为具有可扩展/可折叠节点的方法树。树的每个节点代表一种调用其他方法的方法。扩展节点显示块方法调用的方法。单击块方法名称突出显示了模型图中的相应块。
Whenever the simulation stops, the debugger highlights the name of the method where the simulation has stopped as well as the methods that invoked it. The highlighted method names indicate the current state of the method call stack.
这breakpoints column consists of check boxes. Selecting a check box sets a breakpoint at the method whose name appears to the left of the check box. See从模拟循环窗格设置断点了解更多信息。
ID列列出了在方法柱子。看方法ID了解更多信息。
To display the输出窗格,选择输出在调试器窗口上的选项卡。
输出窗格显示与MATLAB中出现的相同调试器输出®命令窗口如果调试器在命令行模式下运行。输出包括debugger命令提示符以及块的输入,输出和状态,该方法当前暂停了该方法的方法(请参阅块数据输出)。命令提示符显示当前仿真时间以及当前停止调试器的方法的名称和索引(请参阅块ID)。
To display the排序列表窗格,选择排序列表在调试器窗口上的选项卡。
这排序列表pane displays the sorted lists for the model being debugged. See显示模型的排序列表了解更多信息。
To display the地位窗格,选择地位在调试器窗口上的选项卡。
这地位窗格显示各种调试器选项和其他状态信息的值。