开发者

Can I debug Matlab Code started via Matlab engine?

开发者 https://www.devze.com 2023-01-09 14:53 出处:网络
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 b

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 continu开发者_如何学编程e running). Is there any way to debug the code?

Thanks, Philipp


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.)


Maybe I don't understand the question, but the Matlab editor has the usual debug command buttons like step over, into etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号