News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

how to debug smartpoint with codeblocks

Started by freyone, November 28, 2017, 04:45:33 AM

Previous topic - Next topic

freyone


This question may already have an answer here:

    How to view the internal data of a smart pointer inside gdb? 2 answers

No, my question is different. I will edit to explain how.

It cannot display point deference context. Codeblocks verison is 16.01, TDM-gcc is 5.1.0-3, gdb is 7.9.1 which includes Python "pretty printers". It can display vector smartly, but shared_ptr seems not worked. I attach the img .

BlueHazzard

You will need to use pretty printer for this.
Here should be described how to use them with codeblocks:
http://forums.next.codeblocks.org/index.php/topic,20270.0.html

If this is working you can search for a script for shared pointers, for example:
https://stackoverflow.com/questions/35499685/display-smart-pointers-in-eclipse-cdt-using-gdb-pretty-printers