简体   繁体   中英

Debugging python script with IDE

I have a python script with some command line options but prior to that, I run a source command to set some variables. That is

source file.rc
./run_python_script.py -A 1 -B 2 

I want to interactively debug the python code line by line with an IDE. As I tried PyCharm, I wasn't able to use that in this way. If that is not good for this work, is there any other way to accomplish that?

Create a debug configuration with your options and launch it that way. More on that here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM