You already know that you need a debugger or profiler to analyze running code, but you can learn a lot from code without ever running a program.
您已经知道了需要调试器或分析工具来分析运行的代码,但您还可以在不运行程序的情况下,从代码中了解很多。
Before you run a program or attach to an already running program, list the source code where you believe the bug is, set breakpoints, and then start debugging the program.
在运行程序或连接到已经运行的程序之前,请列出您觉得有错误的源代码,设置断点,然后开始调试程序。
This goal also helped to narrow our focus and significantly reduce testing efforts because we knew that with very few exceptions, the code had already been running in production for a long time.
该目标帮助我们缩小了工作范畴并大大减少了测试工作量,因为原有代码已经运行过相当长的时间,是很可靠的。
应用推荐