I often have to analyze (semi)complex software systems to add a small feature or tweak something in the code. To better grasp the flow of the code, I like to have a temporary flowchart to show me the flow of (a part of the) code. For example:
-User clicks on button Start -Method "button_pressed_start" runs -Method "do something" runs -The calculatued value of "do something" was : 42 (sometimes I like additional info) -Method "show_result" runs
Using a stacktrace doesn't work because what I need is the CHANGES to the stacktrace, not the stacktrace itself. The way I do this is now by adding a sysout statement in every method in Eclipse, or a Debug.Writeline statement in Visual studio. Of course, this is cumbersome and it does not really show if method A invokes method B.
Are their any programs, tools or practices to accomplish this? My main IDE's are Eclipse and Visual Studio.