MFC C++/CLI project: /CLR switch in VS2012 causes debugging issues

£可爱£侵袭症+ 提交于 2019-12-10 12:10:10

问题


The company has upgraded our IDE from VS2008 to VS2012. When I try to debug my C++/CLI project (created with VS2008), I no longer seem to see items such as the 'this' pointer, STL containers, data members in structures, etc.

From VS2012, I tried to create a new MFC "Multiple documents" project and set a breakpoint at the end of its CMainFrame::OnCreate(). Everything is fine when I debug, but as soon as I enable /CLR, I get the issue described above.

Is there a new switch in VS2010/VS2012 that I need to toggle somewhere?

Yes, Debugger type is "Mixed". In fact, I haven't changed any project settings (which were working fine in VS2008)


回答1:


Answer: Issue with Update 2 of VS2012 (see Grys73's post in http://connect.microsoft.com/VisualStudio/feedback/details/751327/debugger-stepping-in-mixed-mode-application-is-very-very-slow)

Indeed, after a System Restore, I reinstalled VS2012 completely without Update 2 and the debugger works perfectly.



来源:https://stackoverflow.com/questions/16176080/mfc-c-cli-project-clr-switch-in-vs2012-causes-debugging-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!