简体   繁体   English

当我通过单击调试运行 PyCharm 时,我看不到调试控制台的视图 > 工具 Windows

[英]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.

相关问题 当我尝试在Pycharm中运行或调试我的代码时,我只会遇到错误 - When I try to run or debug my code in Pycharm I only get errors Pycharm:看不到 print() 如何在 Python 控制台中运行功能文件? - Pycharm: Cannot see print() how do I run feature files in Python Console? pycharm 无法运行脚本但可以调试它 - pycharm cannot run script but can debug it 如何在Windows上使用Python + Django + PyCharm更快地调试? - How do I debug faster with Python + Django + PyCharm on Windows? 为什么我调试程序时PyCharm的断点突然变灰了? - Why is the breakpoint of PyCharm suddenly greyed out when I debug the program? 为什么 Pycharm 在调试程序时显示 AttributeError: module 'numbers' has no attribute 'Number',但运行它却没有发生错误? - Why does the Pycharm show AttributeError: module 'numbers' has no attribute 'Number' when I debug a program, but no error happened if I run it? matplotlib 在控制台/运行中工作,但在 Pycharm 的调试中抛出 TypeError - matplotlib works in console/run but throws TypeError in debug in Pycharm 使用 pycharm 调试 console_script - Debug a console_script with pycharm 我在调试代码时得到结果,但是当我使用Eclipse IDE在python中运行代码时看到错误 - I am getting result while debug the code but I see error when I run the code in python using eclipse IDE Pycharm3.0.1&Win7,当我调试我的webpy项目时,输出“ ImportError:无法导入名称compile_command” - Pycharm3.0.1&Win7,When I debug my webpy project,It output“ImportError: cannot import name compile_command”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM