Neel Basu
Neel Basu

Reputation: 12904

KDevelop4 Debugging {...} cannot be unfolded

I am debugging with KDevelop4 which is not showing Types always in its variables window and also Its showing {...} instead of unfolding the data. Is there any way to unfold ? and see types of all variables ?

Upvotes: 3

Views: 388

Answers (2)

bcmpinc
bcmpinc

Reputation: 3370

I just enabled the pretty printers in gdb and now also run into this problem. You can fix this by disabling the pretty printer. Check /etc/gdb/gdbinit/ and ~/.gdbinit. Then you can expand _matrix to see the std::map implementation variables. Though I doubt they would be very useful.

Upvotes: 0

Niko Sams
Niko Sams

Reputation: 4404

KDevelop supports gdb pretty printers for prettier showing variable contents. If matrix is your own class you can write a pretty printer yourself. If you use some library you might find pretty printers for it - or write one yourself too.

Note that gdb pretty printers also work when debugging gdb cli.

Upvotes: 1

Related Questions