PyScribePython 调试库
PyScribe 是一个 Python 库,可通过 print 语句进行调试程序更加方便简单和高效。
示例程序:
from pyscribe import pyscribe def main(): ps = pyscribe.Scriber() ps.save_logs(True) x = 5 ps.p(x) bar = "foo" for i in xrange(5): bar += str(i) ps.iterscribe(bar) y = "hello" ps.p(y) ps.watch(y) y = "world" foo = 1234 ps.d(foo) ps.d(foo, unit="^") synonyms = {"clerk": "secretary", "student": "apprentice", "ground": "floor"} ps.p(synonyms) if __name__ == "__main__": main()
日志:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Log saved at 2014-12-31 22:03:48 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From line 9: x is the int 5 ---------------------------------------- bar is the str foo at beginning of for loop at line 12 From line 14: In iteration 0, bar changed to foo0 From line 14: In iteration 1, bar changed to foo01 From line 14: In iteration 2, bar changed to foo012 From line 14: In iteration 3, bar changed to foo0123 From line 14: In iteration 4, bar changed to foo01234 From line 17: y is the str hello From line 18: Watching variable y, currently str hello From line 20: y changed to world From line 23: ---------------------------------------- foo is the int 1234 ---------------------------------------- From line 24: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ foo is the int 1234 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From line 27: synonyms is the dict {'clerk': 'secretary', 'student': 'apprentice', 'ground': 'floor'} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of log %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
评论
FWDebugiOS 调试库
iOS调试库,支持iOS8+,无需添加任何代码,方便iOS开发和测试。屏幕截图使用教程真机或模拟器中5秒内摇一摇两次即可出现调试菜单。功能如下:FLEX调试工具循环引用检测和分析Class和Proto
FWDebugiOS 调试库
0
Deb.jsJavaScript 调试库
开发中的编码错误无法避免,但不同的解决方法则是决定性的。Deb.js虽然只有1.5KB,但是能够清理控制台窗口,让JavaScript的除错更容易。是Chrome、Opera和Safari内建的除错工
Deb.jsJavaScript 调试库
0
DAL调试助手库
DebugAssistantLibrary(DAL)是用于辅助调试的程序库,具有跨平台和统一接口的特点。主要特性:用于调试的助理库,跨平台的统一接口支持多编译器,支持多平台调试信息断言内存管理
DAL调试助手库
0