Link to home
Start Free TrialLog in
Avatar of jbaisden
jbaisden

asked on

Trying to find an application that might help me....vb.net


Hi guys. I was wondering if any of you knew of an application that would read through your code and create a tree structure of what subs and procedures call what. I planned out a part of a web application I am working on and after reaching 1800 lines on a single code behind, I think something like that would be a helpful reference. I'm really not sure where I would begin looking for something like this so I figured I would start here. An example of what I mean would be like:



                                                                  Page Load
                                                                         |
                                                                         |
                                                                   BeginPreprocessing
                                                                          |
                                                                          |
                                 ---------------------------------------------------------------------
                                  |                                                                                  |
                                Sub1                                                                        Sub2

etc...

I don't know if this exists. I know there is visio, but I don't think it will read your code and create the tree...
Avatar of AlexFM
AlexFM

Hopefully, you will find such application, but I guess this is not easy. In the case that such application doesn't exist, you need to work with debugger. Put breakpoint in some function, and run application under debugger. When debugger stops on breakpoint, open Stack window and you can see all stack from the beginning. You can print it and learn program structure with this stack.
Notice that WEB and Windows Forms application don't have single call tree (at least, for .NET developer). They are event-driven, this means, every event handler is root of it's own tree.
Avatar of jbaisden

ASKER

Yea I had thought about that issue. It gives me a headache just thinking about it. If I had nothing but free time I would take a stab at writting one myself, but I have a killer deadline so I am taking this one headache at a time.
SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's interesting. I'm still tinkering with it. Will get back with ya.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You are so very correct Arthur. I had thought about that notion when I placed this question. The program link TheLearnedOne was actually able to cope with this difficultly; however, it created a starting node for every possibility in the diagram it generated. The result was a 26 page diagram that, when viewed at 100% zoom, was 9 pages wide and 3 rows (so to speak) tall if it were all laid out on a table. I figure the diagramming idea is a lost cause at this point. No matter. I have my flow chart and a great deal of code so I can back track well enough. Sometimes you just get so lost in the code you have to step back and breath for a moment to recapture the initial flow of things. Thank you for both of your input. I shall be splitting the points.