Bug 322471 - [pretty printers] Preference to enable error messages from pretty printers
Summary: [pretty printers] Preference to enable error messages from pretty printers
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf-gdb (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on: 302121
Blocks:
  Show dependency tree
 
Reported: 2010-08-12 03:51 EDT by Jens Elmenthaler CLA
Modified: 2020-09-04 15:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.