相关疑难解决方法(0)

打破pycharm中未处理的异常

有谁知道如何在pycharm中打破未处理的异常?根据这个链接它应该是可能的,虽然它不会破坏我(建立105.58).是否有一些开关我必须打开才能启用它?

编辑:我做了你的建议,但调试器没有打破未处理的异常.请参阅下面的屏幕截图,如果我需要做其他事情,请告诉我. 在此输入图像描述

看起来这与打破pydev/gae中未处理的异常的问题相同.Pycharm使用pydevd作为调试器.

C:\Python25\python.exe "C:\Program Files\JetBrains\PyCharm 1.2.1\helpers\pydev\pydevd.py" --client 127.0.0.1 --port 49371 --file C:/Users/morpheus/PycharmProjects/untitled1/main.py
pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
pydev debugger: starting
Connected to pydev debugger (build 105.58)
Run Code Online (Sandbox Code Playgroud)

我可以让它打破一个非gae项目,但它不会打破一个gae项目.怎么解决这个问题?

python google-app-engine pycharm

36
推荐指数
2
解决办法
1万
查看次数

如何在已处理的异常上停止 PyCharm 的中断/停止/停止功能(即仅在 python 未处理的异常上中断)?

我发现 PyCharm 停止处理我的所有异常,甚至是我在try except块中处理的异常。我不希望它在那里中断 - 我正在处理并且可能期待一个错误。但我确实希望它停止并暂停执行所有其他异常(例如,以便我拥有程序状态并对其进行调试)。

\n

如何做到这一点?

\n

我尝试进入 python 异常断点选项,但没有看到像“仅在未处理的异常上中断”这样的选项,例如:

\n\n

注意这是我当前的状态,注意它是如何在我的 try 块中停止的......:(

\n

交叉发布:https://intellij-support.jetbrains.com/hc/en-us/community/posts/4415666598546-How-to-stop-PyCharm-s-break-stop-halt-feature-on-handled-exceptions- ie-only-break-on-python-unhandled-exceptions-

\n

在此输入图像描述

\n
\n

我试过:

\n
In your link here intellij-support.jetbrains.com/hc/en-us/community/posts/\xe2\x80\xa6 the poster Okke said they solved this issue adding --pdb to the \'addition arguments\', which someone later said they probably meant interpreter options.\n
Run Code Online (Sandbox Code Playgroud)\n

但没有工作并出现错误:

\n
/Users/brandomiranda/opt/anaconda3/envs/meta_learning/bin/python --pdb /Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevd.py --cmd-line --multiproc --qt-support=auto --client 127.0.0.1 --port 58378 --file /Users/brandomiranda/ultimate-utils/tutorials_for_myself/try_catch_pycharm_issues/try_catch_with_pickle.py\nunknown option --pdb\nusage: /Users/brandomiranda/opt/anaconda3/envs/meta_learning/bin/python …
Run Code Online (Sandbox Code Playgroud)

python debugging pycharm

5
推荐指数
1
解决办法
491
查看次数

标签 统计

pycharm ×2

python ×2

debugging ×1

google-app-engine ×1