I like IDLE. However, sometimes I have scripts on 100-200 lines, and I want to sort interactively debug / play, say, the functions defined in foo.py, and not just a call python foo.py. Is there a way I can call IDLE in my context foo.py?
foo.py
python foo.py
Insert this line in the script:
import pdb; pdb.set_trace()
Which will launch the python debugger , which allows you to interactively go through the script by checking the variables and for example you go.
I assume you are asking how to enable standby debugging?
Python Shell Debugger Debug, foo.py Run Model. Debug Control, foo.py; , - , , ( script).
Python Shell
Source: https://habr.com/ru/post/1735899/More articles:GetDate in a string in C # - stringRegEx to extract all the attributes of HTML tags, including embedded JavaScript - htmlMySQL Identifier Sequence - mysqlAre many active result sets (MARS) supported in an Azure SQL database? - azureRemoving identical files on UNIX - unixCan someone explain how JSON partners work without using eval? - jsonJavascript: prototype numbers - javascriptXML deserialization issue (attribute with namespace) - c #Download all images or create a zip file of all downloads from gallery downloads - ruby-on-railsWebsite not working while loading important files - phpAll Articles