I am looking for a program to help me debug a tree in c++. My tree has thousands of nodes and I want to view the tree as it forms and view problem nodes and branches. Operating system doesn't matter. Anyone know of a program that can do this?
Asked
Active
Viewed 1,898 times
3 Answers
1
Don't know what platform you are at, but DDD is pretty good with this, though can't say anything about its performance on huge sets.

Nikolai Fetissov
- 82,306
- 11
- 110
- 171
-
I am using DDD now however I would like to "auto expand" all the nodes. I found a paper written on it but I can't find the actual feature. – romejoe Feb 05 '11 at 19:16
1
The only practical way I know is to write your own ! A good design solution is to implement a visitor design pattern. Then you can have different visitor like :
- a print visitor, that print your tree in the console (not practical as you say you have a lot of nodes)
- a serialize visitor : It will write your tree in a file.
You can then "debug" by calling the appropriate visitor at key points.
my2c

neuro
- 14,948
- 3
- 36
- 59