我可以调试通过 Matlab 引擎启动的 Matlab 代码吗?
我尝试从 matlab 引擎运行和调试脚本文件。在我的 C++ 程序中使用断点,我可以打开 Matlab 编辑器并在脚本中设置断点。当我继续 C++ 程序时,断点被击中,但单步执行或类似命令不起作用(以及检查变量或继续运行)。有什么办法可以调试代码吗?
谢谢, 菲利普
I try to run and debug a script file from the matlab engine. Using breakpoints in my C++ program, I could open a Matlab editor and set a breakpoint in my script. When I continue the C++ program, the breakpoint gets hit, but Step through or similar commands do not work (as well as inspect variables or continue running). Is there any way to debug the code?
Thanks,
Philipp
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您能澄清一下您正在处理的情况下Matlab 和C++ 之间的关系吗?因为您提到了 C++,所以您似乎不仅仅是尝试使用 Matlab 调试器来调试 Matlab 函数或脚本,对吗?
(如果您不熟悉 Matlab 和/或其调试器,请确保输入“doc debug”并熟悉命令。)
Can you clarify the relationship between Matlab and C++ in the situation you are dealing with? Because you mention C++, it seems you are not simply trying to debug a Matlab function or script using the Matlab debugger, correct?
(If you are new to Matlab and/or its debugger make sure to type 'doc debug' and familiarize yourself with the commands.)
也许我不明白这个问题,但是Matlab编辑器有常用的调试命令按钮,如step over、into等。
Maybe I don't understand the question, but the Matlab editor has the usual debug command buttons like step over, into etc.