How to view C ++ STL collections in NetBeans 8.1 debugger using cygwin toolkit?

I would like to see vector elements in NetBeans using the cygwin toolkit. There are several instructions, but it is not clear how to apply them to cygwin. Does anyone have any positive experiences?

Thanx.

+4
source share
1 answer

On Windows 10 with Netbeans 8.2 and cygwin64:

  • check if libstdc ++ is installed (using cygwin 'setup-x86_64.exe')
  • Download scripts at
      https://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python/libstdcxx
  • , libstdcxx, cygwin. :
      C:\Bin\cygwin64\USR\\GDB\
    ( "printers.py":   C:\Bin\cygwin64\USR\\GDB\\libstdcxx\v6

  • Netbeans/debug , ind in. (my c:\users\MYUSER \.gdbinit)

  • .gdbinit , :
      
      import sys
    sys.path.insert(0, 'c:\bin\cygwin64\usr\share\gdb\python')
    libstdcxx.v6.printers import register_libstdcxx_printers
    register_libstdcxx_printers ()
    end

    ( sys.path.insert )

  • . "" .

0

Source: https://habr.com/ru/post/1651448/


All Articles