Visual Studio 2012 - Values in debug watch are not displayed when compiled with /clr -
the debug watch doesn't display values objects std::vector example. on other hand, values of local integers displayed.
when compile project without /clr
option displayed correct.
i tried different debugmodes (mixed, auto, managed...) , played around different settings jit, "enable .net framework source stepping" , symbol server. problem remained. (after each change of settings project clean/build again)
//#pragma managed(push, off) int _tmain(int argc, _tchar* argv[]) { int = 5; //displayed correctly in debug watch vector<myint> vec; myint x(4); vec.push_back(x); // displayed name: "vec", value: "{...}" (no option expand it) vec.push_back(x+x); vec.push_back(std::move(x)); std::vector<int> vec2; vec2.push_back(a); return 0; } //#pragma managed(pop)
Comments
Post a Comment