Author Topic: Support for Debugging STL library in C++  (Read 3820 times)

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Support for Debugging STL library in C++
« on: April 04, 2016, 02:10:02 pm »
Hi,

Is these any plan to support stl containers in slickedit?
I cannot see even simple vectors values, like in visual studio when debugging?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2666
  • Hero Points: 410
Re: Support for Debugging STL library in C++
« Reply #1 on: April 04, 2016, 05:19:31 pm »
What platform, and are you using the GDB debugger integration or the WinDBG debugger integration?

GDB debugger integration definitely supports this, however, it can be disabled in the debugger options.

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #2 on: April 04, 2016, 05:35:03 pm »


using windows 7 x64, mingw gcc, see image -- i cannot see value in debugger.

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #3 on: April 04, 2016, 05:40:25 pm »
For reference, see visual studio display !


It looks ages behind.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2666
  • Hero Points: 410
Re: Support for Debugging STL library in C++
« Reply #4 on: April 04, 2016, 06:05:42 pm »
Go to Debug > Debugger Options... > General?

Do you have "Enable Python pretty printing" turned off ?


piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #5 on: April 05, 2016, 03:59:10 pm »
it's on.
can u share a screenshot where it actually shows useful info?

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #6 on: April 05, 2016, 04:00:05 pm »

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2666
  • Hero Points: 410
Re: Support for Debugging STL library in C++
« Reply #7 on: April 05, 2016, 04:42:22 pm »
Try this:

1) Macro > Set Macro Variable... > def_debug_logging > 1

2) Run a debug session, reproduce the problem.

3) Also do this (with the example you have), from the SlickEdit command line:
      debug_send_command p v

3) Macro > Set Macro Variable... > def_debug_logging > 0

4) Grab "logs/debug.log" from your SlickEdit configuration directory and attach it here.

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2666
  • Hero Points: 410
Re: Support for Debugging STL library in C++
« Reply #9 on: April 05, 2016, 11:37:40 pm »
Try plugging this modified version of libstdc++/printers.py into your SlickEdit installation directory.  Make a backup of your original in case if you have problems with it.

slickedit/plugins/com_slickedit.base/sysconfig/vsdebug/python/libstdcxx/v6/printers.py

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #10 on: April 06, 2016, 06:35:43 am »
still same  :(

I restarted the slickedit

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #11 on: April 06, 2016, 06:53:12 am »
b/w i am using mingw w64 (x86_64-5.3.0-release-posix-seh-rt_v4-rev0)

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2666
  • Hero Points: 410
Re: Support for Debugging STL library in C++
« Reply #12 on: April 06, 2016, 03:17:51 pm »
You could try using the matching mingw version of GDB and turning off the option to "Disable auto-loading of scripts".  You can point SlickEdit at your mingw GDB using the Debug > Debugger Options... > GDB Configurations.

It looks like that particular version of GCC/libstdc++ generates different debugging information, because 'v' doesn't even show up as a std::vector according to GDB, which is why the Python script does not recognize it as such.

piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #13 on: April 07, 2016, 08:52:48 pm »
particular version of GCC/libstdc++ ??

Care to tell me which version of mingw gcc works  ??? ? i highly doubt, it was ever tested.
mingw-32 wont work as it is not python enabled.

 I have tested removing entire config, reinstalling slickedit - nothing works. i have tried both with 32 and 64 bit of mingw in windows 7 x64 .


piyushj

  • Community Member
  • Posts: 28
  • Hero Points: 0
Re: Support for Debugging STL library in C++
« Reply #14 on: April 07, 2016, 09:07:59 pm »
Here my entire debugging system has crashed.
Now nothing works even after a fresh install.



« Last Edit: April 08, 2016, 12:43:49 pm by piyushj »