visual studio 2012 - How to display native types when debugging in VS2012 for mixed mode C++/CLI MFC app -


possible duplicate of this question.

i have mfc project uses /clr switch , c++/cli code use .net component. on vs2005.

on upgrading vs2012 update 2, during debugging, no values or types shown native data types. learned new mechanism native data type visualization (natvis) introduced in vs2010 , extended / enhanced in vs2012. following information on that page, unchecked managed c++ compatibility mode , c/c++ edit , continue. after this, breakpoints became disabled , stopped being hit. using "only managed" debugger, breakpoints hit no values shown.

finally, used "mixed" debugger , used __debugbreak() force break. resulted in integer values being shown if local autos; , data types picked correctly. however, std::string or cstring values not shown , instead type shown in value column. similarly, pointers, class members, or functions argument values not shown , type information, undefined value, or out of scope shown in value column.

the behavior consistent across autos, locals , watch windows mouse hover on symbols.

how native data types display values during debugging in vs2012 mixed mode c++/cli mfc application.

i have read this question , verified symbols have been loaded in modules window.

apparently, microsoft aware of issue , upcoming ctp of update 3 should fix it.

additionally, why need use __debugbreak()?

a couple of days ago, microsoft released visual studio service pack 3 rc may (installing myself right now). here link: http://www.microsoft.com/en-us/download/details.aspx?id=38832


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -