How we can debug a program in file?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How we can debug a program in file??

22nd May 2019, 9:16 AM
reza
reza - avatar
5 Answers
+ 7
It depends on the problem(s) you're getting. Can you post a link to your code?
22nd May 2019, 9:22 AM
David Ashton
David Ashton - avatar
+ 7
Several IDEs have debugger programs available, if you use any of them. As far as I know, IDLE and PyCharm have such functionalities. Don't know about the others.
22nd May 2019, 9:24 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 4
If you are looking for writing debug or other information to a file you can use python logger module. Find more information here: https://www.loggly.com/ultimate-guide/python-logging-basics/
22nd May 2019, 10:40 AM
Lothar
Lothar - avatar
0
Depends on the error messages you are getting. What are you using to write and execute said program? Python3
8th Jun 2019, 11:54 PM
Robert Boettcher
Robert Boettcher - avatar
0
I use Visual stadio code
9th Jun 2019, 9:04 AM
reza
reza - avatar