知识卡片
调试器检查真实运行状态
在断点暂停后逐步执行并检查变量,能对照假设观察程序实际路径,常比不断加打印重跑更直接。仍需可复现输入和正确运行环境;看到某一次状态不等于证明所有输入都一样。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 代码编辑器生产力
原书出处 · 1 处
- · 查看原书依据
Using the IDE’s debugger The IDE’s debugger is a useful tool that allows you to pause and step through your code and inspect its state at each step. This can sometimes be quicker than visually parsing print statements and rerunning code again and again. It won’t take long to learn how to use it, and in our experience it’s well worth the investment. You can
参考来源
- 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第07章《代码编辑器生产力》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch07.html)
- 结论依据:摘录中关于调试器检查真实运行状态的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:Using the IDE’s debugger The IDE’s debugger is a useful tool that allows you to pause and step through your code and inspect its state at each step. This can sometimes be quicker than visually parsing print statements and rerunning code again and again. It won’t take long to learn how to use it, and in our experience it’s well worth the investment. You can