0

How to trace a python code ?

I actually want to see line by line execution of my python code . So what function or what kind of stuff I should do in this app so that I can see execution of my code....

7th Jun 2020, 10:43 AM
Vikas kharat
Vikas kharat - avatar
8 Respuestas
+ 7
If you are using an IDE, you can use the debug mode to run your code ( most IDE provide this mode). You can set breakpoints, or you can go through the code step by step. During this debug mode you can see which line of code is executed in next step, and you can see the content of your varibales. The complexity of the debug mode depends on what IDE you are using.
7th Jun 2020, 3:31 PM
Lothar
Lothar - avatar
+ 3
This is a link to an external site which will show your code's actions http://www.pythontutor.com/visualize.html#mode=edit
7th Jun 2020, 11:06 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Thanks sir
7th Jun 2020, 12:09 PM
Vikas kharat
Vikas kharat - avatar
7th Jun 2020, 3:37 PM
narayanaprasad
narayanaprasad - avatar
+ 1
Thank you
7th Jun 2020, 11:06 AM
Vikas kharat
Vikas kharat - avatar
0
Import trace is not working for me
7th Jun 2020, 10:58 AM
Vikas kharat
Vikas kharat - avatar
0
Will u please elaborate how to use import trace in any program
7th Jun 2020, 10:58 AM
Vikas kharat
Vikas kharat - avatar
0
By using trace method you can execute your code line by line https://pymotw.com/2/sys/tracing.html
8th Jun 2020, 3:20 AM
Muhammad Mehran Bin Azam
Muhammad Mehran Bin Azam - avatar