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

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

我正在使用 visual studio 2013 编译器编写一些 mex 文件以在我的 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

当我右键单击第三个选项并单击以管理员身份运行时,遇到以下消息:
enter image description here

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

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

enter image description here

再一次:
enter image description here

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

enter image description here

最佳答案

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

enter image description here

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

enter image description here

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

enter image description here

关于c++ - 无法将 matlab.exe 进程附加到 visual studio 2013 以调试 mex 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39311893/

相关文章:

c++ - 矩阵乘法、KIJ 顺序、并行版本比非并行版本慢

c++ - 我知道函数调用中存在歧义。有没有办法调用 foo() 函数?

matlab - 前馈神经网络输入的归一化

arrays - 如何对所有左上角的矩阵元素求和?

visual-studio - 加载从TFS服务器检索的项目时,如何解决错误消息 “an error occurred registering this project with source control”?

visual-studio - Visual Studio崩溃,然后在每天的第一次启动时重新启动一次

c++ - Mersenne Twister 与 Mersenne Twister 64 位

c++ - 在 linux 中使用 boost xml_parser 如何读取和比较 windows-1251 文字?

c++ - C++ 的 MATLAB 代码库

asp.net - 在启用共享配置的 IIS 7+ 上安装 Web Deploy