python debug【】
来源:互联网 发布:ios10软件推荐 知乎 编辑:程序博客网 时间:2024/06/06 21:00
2012-04-04 22:09
一直喜欢使用notepad++来写小规模的python脚本。喜欢这样快速的开发脚本,不过一旦遇到逻辑问题就抓瞎了。不知道该怎么debug 脚本,就只能一行一行的去分析什么地方出问题了。
今天发现python怎么debug了,在python的用户手册上,lib手册的第24章,使用python -m pdb test.py进行debug.
C:\Users\zouhong\Desktop>python -m pdb test.py
> c:\users\zouhong\desktop\test.py(1)<module>()
-> a = 3
(Pdb) n
> c:\users\zouhong\desktop\test.py(2)<module>()
-> b = 5
(Pdb) n
> c:\users\zouhong\desktop\test.py(4)<module>()
-> print a + b
(Pdb) n
8
> c:\users\zouhong\desktop\test.py(6)<module>()
-> print 'hello, world.'
(Pdb) n
hello, world.
--Return--
> c:\users\zouhong\desktop\test.py(6)<module>()->None
-> print 'hello, world.'
(Pdb) n
--Return--
> <string>(1)<module>()->None
(Pdb)
- debug python
- python debug【】
- python debug
- Python Debug
- Python debug
- python debug
- 关于Python的Debug...
- python Debug 文件结束
- python debug 工具pdb
- python 语言如何debug
- pdb (python debug)
- python debug and build
- Python——debug
- Python debug(二)
- python multiprocessing debug
- pdb debug python
- 运程debug python程序
- debug python in ipython
- c# 取整
- 服务器上部分端口无法访问
- Microsoft Sync Framework 系列(二):微软同步框架下载、文档、示例
- Linux 命令专题:TOP
- SQL Server-存储过程
- python debug【】
- Microsoft Sync Framework 系列(三):微软同步框架出现背景及要解决的问题
- jquery焦点事件
- 获得linux的cpu信息
- CX51 用户手册----NOMOD517 伪指令
- 揭开正则表达式的神秘面纱
- substr 函数
- ExtJS控件样式的修改(示例无边框panel)
- Microsoft Sync Framework 系列(四):微软同步框架中的基本概念