Visual studio 2012 Visual Studio 2012-使用/clr编译时,不显示调试监视中的值

Visual studio 2012 Visual Studio 2012-使用/clr编译时,不显示调试监视中的值,visual-studio-2012,clr,visual-studio-debugging,Visual Studio 2012,Clr,Visual Studio Debugging,例如,调试监视不会显示std::vector等对象的值。 另一方面,显示局部整数的值 当我编译不带/clr选项的项目时,所有内容都显示正确 我尝试了不同的调试模式混合,自动,管理。。。并使用不同的设置,如JIT、Enable.NETFramework源代码步进和符号服务器。但问题依然存在。每次更改设置后,项目都会重新清理/构建 //#pragma managed(push, off) int _tmain(int argc, _TCHAR* argv[]) { int a = 5; //

例如,调试监视不会显示std::vector等对象的值。 另一方面,显示局部整数的值

当我编译不带/clr选项的项目时,所有内容都显示正确

我尝试了不同的调试模式混合,自动,管理。。。并使用不同的设置,如JIT、Enable.NETFramework源代码步进和符号服务器。但问题依然存在。每次更改设置后,项目都会重新清理/构建

//#pragma managed(push, off)
int _tmain(int argc, _TCHAR* argv[])
{
    int a = 5; //displayed correctly in debug watch
    vector<myInt> vec;
    myInt X(4);
    vec.push_back(X); // displayed as Name: "vec", Value: "{...}" (no option to 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)

许多神秘的主。。。托管程序的入口点是void main数组^args。一个论点,而不是两个。正确使用它,调试器就不会对堆栈帧的外观感到困惑。