Author Topic: slickedit, debugging and the c++ standard template library  (Read 5015 times)

drac

  • Community Member
  • Posts: 5
  • Hero Points: 0
slickedit, debugging and the c++ standard template library
« on: September 24, 2009, 09:53:58 pm »
Hi,

It seems that Slickedit 14.0.2 has no c++ standard template library debugging support.
Something like std::vector<std::string> looks horrible in SlickEdit. Any plans to improve
C++ STL support?

Here is SlickEdit 14.0.2:


compared to Visual Studio 2008 Express:

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2445
  • Hero Points: 351
Re: slickedit, debugging and the c++ standard template library
« Reply #1 on: September 25, 2009, 12:54:02 pm »
Visual C++ has the distinct advantage of knowing exactly what STL implementation it is working with.

I have filed a feature request to create a mapping interface for making it easier and customizable to display specific templates in the debugger.  Maybe this can be addressed in a future version of SlickEdit.  It is not trivial, and the problem is only magnified by the fact that there are different STL implementations we would have to deal with.

drac

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: slickedit, debugging and the c++ standard template library
« Reply #2 on: September 25, 2009, 04:44:29 pm »
Visual Studio has the STL support in the autoexp.dat file (nice blog entry about this http://www.virtualdub.org/blog/pivot/entry.php?id=120). And this autoexp.dat can be adapted to any STL implementation. Here is an autoexp.dat listing for STLport: http://garrys-brain.blogspot.com/2007/08/debugging-stlport-in-visual-studio.html

ProjectArcher (http://sourceware.org/gdb/wiki/ProjectArcher) sounds like exactly what I need.
« Last Edit: September 25, 2009, 04:48:42 pm by drac »

drac

  • Community Member
  • Posts: 5
  • Hero Points: 0
Re: slickedit, debugging and the c++ standard template library
« Reply #3 on: October 08, 2009, 01:44:15 pm »
GDB 7.0 was released (http://lwn.net/Articles/356044/) including "Python scripting support" which should make it easy to display STL types.

JakeMontgomery

  • Community Member
  • Posts: 79
  • Hero Points: 8
Re: slickedit, debugging and the c++ standard template library
« Reply #4 on: November 03, 2010, 03:51:52 pm »
+1 on this. I don't even need SlickEdit to decode the stl containers for me ... just give me the hooks so that I can customize it myself.

@drac - Did you get this to work? Any pointers on how to use python scripts to display stl containers in SlickEdit using gdb would be appreciated.