[英]When I run PyCharm by clicking the Debug I cannot see the debug console with View > Tool Windows
Here's an example of all that I see:这是我所看到的所有示例:
I have many breakpoints set but the code does not seem to stop at them.我设置了许多断点,但代码似乎并没有停止。
Here's an example:这是一个例子:
import aqt
print ("ABC")
aqt.run()
print ("DEF")
I have a breakpoint on ABC line and on DEF.我在 ABC 行和 DEF 上有一个断点。 The app runs and prints ABC but does not stop on the breakpoint.应用程序运行并打印 ABC,但不会在断点处停止。
Does anyone have any ideas what I might be doing wrong?有谁知道我可能做错了什么?
If the process finishes with an exit code of 0 it probably did not ever hit your breakpoint.如果该过程以退出代码 0 结束,则它可能从未达到您的断点。 You can quickly test this by putting a breakpoint at the first part of the program.您可以通过在程序的第一部分放置断点来快速测试它。 Additionally F9 should run the program until it reaches the next breakpoint.此外,F9 应该运行程序,直到它到达下一个断点。
exit 0 means the successful execution of the program and a non zero exit code indicates an error. exit 0 表示程序成功执行,非零退出码表示错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.