无法将matlab.exe进程附加到visual studio 2013以调试mex文件?

时间:2016-09-03 22:32:04

标签: c++ matlab visual-studio visual-studio-2013 remote-debugging

我正在编写一些mex文件,使用visual studio 2013编译器在我的matlab程序中运行 为了能够调试您的mex文件,您应该遵循these steps
几分钟前一切都是正确的,我正在做我的项目没有任何问题 今天我输入了代码

mex -g mx_minimum_power.cpp cvm_em64t_debug.lib  

在命令提示符下多次获取成功消息后,我已将matlab.exe附加到visual studio并通过设置断点,我已经 调试了我的代码 但是这次我突然遇到了以下错误,我不知道如何解决它 enter image description here

enter image description here

当我右键单击第三个选项并单击run as administrator时,我遇到以下消息:
enter image description here

然后如果我选择configure remote debugging,我会遇到:
enter image description here

现在我有以下显示正在运行的进程。

enter image description here

再次:
enter image description here

当我点击远程调试器的权限或选项时:

enter image description here

1 个答案:

答案 0 :(得分:6)

运行visual studio remote debugging monitor并收到以下消息后:

enter image description here

应该单击此窗口中的Find按钮,以查找正在子网上运行的msvsmon.exe

enter image description here

然后在MATLAB.exe列表中选择Available Processes

enter image description here