dbcont
恢复执行
语法
说明
dbcont
在暂停后恢复执行 MATLAB® 代码文件。继续执行代码文件,直到遇到另一个断点、满足暂停条件、发生错误或执行成功完成为止。
注意
如果要编辑调试生成的文件,最好先退出调试。否则,可能会产生意外结果。
示例
在调试时恢复执行
在使用 dbcont
命令进行调试时恢复执行程序。
创建文件 buggy.m
,其中包含以下语句。
function z = buggy(x)
n = length(x);
z = (1:n)./x;
在第 2 行添加一个断点,然后运行代码。MATLAB 将在断点处暂停执行。
dbstop in buggy at 2 buggy(5)
运行 dbcont
命令,继续执行到程序末尾并结束调试。
dbcont
版本历史记录
在 R2006a 之前推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)