Author Topic: how to debug smartpoint with codeblocks  (Read 1281 times)


  • Guest
how to debug smartpoint with codeblocks
« on: November 28, 2017, 04:45:33 am »

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 .

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2974
Re: how to debug smartpoint with codeblocks
« Reply #1 on: November 28, 2017, 05:40:48 pm »
You will need to use pretty printer for this.
Here should be described how to use them with codeblocks:,20270.0.html

If this is working you can search for a script for shared pointers, for example: