一、ipdb介绍
1.1 ipdb介绍
ipdb是一款调试代码的第三方模块
我想这一句话就给出了ipdb的所有信息了哇
1.2 ipdb安装
既然是第三方模块,那么就需要自己来安装,使用pip即可,在命令行输入:
如果你对python感兴趣,我这有个学习Python基地,里面有很多学习资料,感兴趣的+Q群:688244617
pip install ipdb
测试安装是否成功,在命令行输入:
python -m ipdb
如果安装成功则会输出以下内容:
usage: python -m ipdb [-c command] … pyfile [arg] …
Debug the Python program given by pyfile.
Initial commands are read from .pdbrc files in your home directory
and in the current directory, if they exist. Commands supplied with
-c are executed after commands from .pdbrc files.
To let the script run until an exception occurs, use “-c continue”.
To let the script run