简体   繁体   中英

Unable to attach matlab.exe process to visual studio 2013 for debugging mex files?

I am writing some mex files to run in my matlab program using visual studio 2013 compiler.
In order to be able to debug your mex files, you should follow these steps
Everything was right just some minutes ago and I was doing my project without any problem.
Today I have typed the code

mex -g mx_minimum_power.cpp cvm_em64t_debug.lib  

on command prompt many times and after getting the success message, I've attached matlab.exe to visual studio and through setting a break point, I've debugged my code.
But this time I suddenly ran into the following error and I don't know how to solve it.
在此输入图像描述

在此输入图像描述

When I right-clicked on the third option and clicked run as administrator , I encountered the following message:
在此输入图像描述

Then if I choose configure remote debugging , I'll encounter:
在此输入图像描述

Now I have the following processes that are shown to be running.

在此输入图像描述

and again:
在此输入图像描述

When I click on permissions or options for remote debugger:

在此输入图像描述

After running visual studio remote debugging monitor and getting the following message:

在此输入图像描述

One should click the Find button in this window in order to find the msvsmon.exe that is being run on the subnet

在此输入图像描述

and then choose MATLAB.exe , in the Available Processes list.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM