How to print out the content in vector with gdb on Mac OS X

后端 未结 2 1249
故里飘歌
故里飘歌 2021-01-21 05:48

I\'m trying to use C++11 feature on Mac OS X. I downloaded g++ 4.8.1 with port.

This is the test code.

class A
{
    int x;
public:
    A() {}
    ~A()         


        
相关标签:
2条回答
  • 2021-01-21 06:12

    Use python printers for GDB, your printers seem like deprecated stuff:

    enter image description here

    0 讨论(0)
  • 2021-01-21 06:23

    enter image description here

    I could use Xcode; lldb works fine on Xcode.

    0 讨论(0)
提交回复
热议问题