Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322471

Summary: [pretty printers] Preference to enable error messages from pretty printers
Product: [Tools] CDT Reporter: Jens Elmenthaler <jens.elmenthaler>
Component: cdt-debug-dsf-gdbAssignee: Project Inbox <cdt-debug-dsf-gdb-inbox>
Status: NEW --- QA Contact: Jonah Graham <jonah>
Severity: normal    
Priority: P3 CC: pawel.1.piech
Version: 8.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 302121    
Bug Blocks:    

Description Jens Elmenthaler CLA 2010-08-12 03:51:35 EDT
Build Identifier: CDT 8.0

The patch comitted for 302121 sends "maintenance set python print-stack". For the normal user this is just fine.

For people who develop their own pretty printers however, it is helpful to see the errors that are suppressed by this command.

Approach:
- provide a preference in the GDB preference page (in the pretty printing section) that allows to turn the errors on again
- if this preference is changed, it should also become active for the currently running launches. You normally find problems in the standard working style and then start debugging immediately.

Reproducible: Always
Comment 1 Marc Khouzam CLA 2012-01-03 14:15:33 EST
Note that this option will change with GDB 7.4:


From the NEWS file of GDB:

  ** The "maint set python print-stack on|off" command has been
     removed.  A new command: "set python print-stack
     none|full|message" has replaced it.  Additionally, the default
     for "print-stack" is now "message", which just prints the error
     message without the stack trace.