Home > Article > Backend Development > How to Enable Pretty Printing for STL Objects in Eclipse CDT?
Enable Pretty Printing for STL Objects in Eclipse CDT
Pretty printing is a feature that allows for improved visual representation of data when debugging C applications. To enable this functionality for STL objects in Eclipse CDT, follow these steps:
1. Python Module Installation
2. Configuring GDB
python import sys sys.path.insert(0, '/PATH/TO/PRETTY_PRINTERS_DIRECTORY') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end
3. Eclipse Configuration
4. Usage
5. Additional Commands
set print pretty on set print object on set print static-members on set print vtbl on set print demangle on set demangle-style gnu-v3 set print sevenbit-strings off
The above is the detailed content of How to Enable Pretty Printing for STL Objects in Eclipse CDT?. For more information, please follow other related articles on the PHP Chinese website!