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

8

我正在使用Visual Studio 2013编译器编写一些mex文件,以在我的Matlab程序中运行。
为了能够调试您的mex文件,您应该遵循这些步骤
几分钟前一切都很正常,我没有遇到任何问题,但今天我输入了这段代码。

mex -g mx_minimum_power.cpp cvm_em64t_debug.lib  

在命令提示符中多次运行并获得成功消息后,我将matlab.exe附加到Visual Studio,并通过设置断点来调试我的代码。
但这一次我突然遇到了以下错误,我不知道如何解决。
enter image description here enter image description here 当我右键单击第三个选项并点击“以管理员身份运行”时,遇到了以下消息:
enter image description here 然后如果我选择“配置远程调试”,我会遇到:
enter image description here 现在我有以下显示为正在运行的进程。 enter image description here 再次出现:
enter image description here 当我点击远程调试器的权限或选项时:
enter image description here
1个回答

6
运行Visual Studio远程调试监视器后,会收到以下消息:

enter image description here

在这个窗口中,应该点击查找按钮以查找正在子网上运行的msvsmon.exe

enter image description here

然后,在可用进程列表中选择MATLAB.exe

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接