在Matlab中,可以像在Visual Studio中那样在特定变量上设置数据断点吗?我在网上找不到任何东西,在手册中,真的会缺少如此重要的功能吗?

 Akzeptierte Antwort

liujie
liujie am 17 Feb. 2025

0 Stimmen

它做的就是conditional breakpoints
您可以在命令行中设置它们,但通过编辑器以交互方式放置它们要容易得多(右键单击"-“下一行,然后选择”设置条件断点“
命令行:
代码语言:javascript
复制
dbstop in FUNCTION at LINENO if 'EXPRESSION'

Weitere Antworten (0)

Kategorien

Mehr zu 函数基础知识 finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 17 Feb. 2025

Beantwortet:

am 17 Feb. 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!