Pyxdebug is Xdebug format debuger for Python

pyxdebug的Python项目详细描述


调试调用函数:

xd = PyXdebug()
#xd.collect_imports = 1
#xd.collect_params = 0
#xd.collect_return = 0
#xd.collect_assignments = 0
xd.run_func(func)
print xd.get_result()

调试执行语句:

xd = PyXdebug()
xd.run_statement(statement)
print xd.get_result()

调试运行脚本文件:

python pyxdebug.py script_path

调试运行脚本文件(模块):

python -m pyxdebug script_path

用法:pyxdebug.py[-o输出文件路径][-i收集导入][-p收集参数][-r收集返回][-a收集分配]脚本路径[参数…]

选项:
-h, --helpshow this help message and exit
-o, --outfileSave stats to <outfile>
-i, --collect_imports
This setting, defaulting to 1, controls whether PyXdebug should write the filename used in import or reload to the trace files.
-p, --collect_params
This setting, defaulting to 0, controls whether PyXdebug should collect the parameters passed to functions when a function call is recorded in either the function trace or the stack trace.
-r, --collect_return
This setting, defaulting to 0, controls whether PyXdebug should write the return value of function calls to the trace files.
-a, --collect_assignments
This setting, defaulting to 0, controls whether PyXdebug should add variable assignments to function traces.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
图形Java仿射变换以旋转通用路径   IntelliJ IDEA中的java代码标记为编译器错误,在Eclipse中可以正常工作   java ArrayList的containsAll返回了错误的值   如何在安卓中的片段活动中添加java代码   java通过使用netbeans调用jbutton,将带有行的jbutton添加到jtable中   java在更新arrayAdapter/listView之前更新最终列表   java如何在另一个项目中导入包含AspectJ方面和注释的项目   为什么我的java布尔测试总是失败?   Eclipse中的java自动激活   在Bluetooth for Java(更具体地说是Android)之上是否有TCP/IP协议栈实现?   java Android Studio通过intent传递ArrayList并填充ListView