Oct-25-2016, 02:22 AM
I am new python but consider myself little more than a beginner. I am working on somebody else's code and its a huge program. I want to understand how the program flows, like what functions are called and what are the object status at that time. I want to build a visual representation of the flow if possible. Tried below things but with little success.
1. I tried using the trace module with command-line but that throws calls to all function including the libraries I imported. I tried the ignore-dir/module but that doesn't seem to work.
2. I also tried using the Trace function in code with output in a file (dat or txt), but that doesn't output the function call relationship.
3. Another thing I tried is the event handling but that seems to work only when the function calls are within the same file.
What do programmers usually use to trace function calls, when the program is huge and is dealing with large dataset calculation? Is there a tool or some functionality with any IDE that would be helpful?
Note: I am using 2.7 in PyCharm and Sublime Text 3.
1. I tried using the trace module with command-line but that throws calls to all function including the libraries I imported. I tried the ignore-dir/module but that doesn't seem to work.
2. I also tried using the Trace function in code with output in a file (dat or txt), but that doesn't output the function call relationship.
3. Another thing I tried is the event handling but that seems to work only when the function calls are within the same file.
What do programmers usually use to trace function calls, when the program is huge and is dealing with large dataset calculation? Is there a tool or some functionality with any IDE that would be helpful?
Note: I am using 2.7 in PyCharm and Sublime Text 3.