Pycharm:如何在遇到调试点时专注于编辑器 [英] Pycharm: How to focus on Editor when hit a debug point

查看:37
本文介绍了Pycharm:如何在遇到调试点时专注于编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Mac,Pycharm 版本 2018.2.4 社区版.

I am using a mac, with Pycharm version 2018.2.4 Community version.

当我使用调试器运行调试会话并到达调试点时,我必须使用鼠标单击我的编辑器才能在编辑器上键入代码.如果我不这样做并直接敲击我的键盘,Mac 会抱怨一些bing"的声音,表明键盘输入对任何应用程序都无效(我的意见).

When I run a debugging session using the debugger and hit a debug point, I have to click on my editor using my mouse to be able to type code on the editor. If I don't do this and hit my keyboard directly, Mac will complain with some "bing" sound, signaling the keyboard input is not valid to any application (my opinion).

如何让我的 Pycharm 在到达调试点时自动聚焦在编辑器上?或者至少专注于调试器,以便我可以按 ESC 专注于编辑器?

How to make my Pycharm auto focus on the editor when hitting the debug point? Or at least focus on the debugger so that I can hit ESC to focus on the editor?

我在设置中选择了Focus application on breakpoint".

I have selected "Focus application on breakpoint" in the setting.

推荐答案

它应该是这样工作的:

Preferences 中,在搜索栏中输入 Focus application on breakpoint 并确保它已打开.

In Preferences, type Focus application on breakpoint into the search bar and be sure it is toggled on.

应用该设置并退出Preferences.

在您的调试器中,当您遇到断点时,按下转义键,您的光标应该会在编辑器中闪烁.

In your debugger, when you hit a breakpoint, hit the escape key, and your cursor should be blinking in your editor.

对我来说,我必须禁用设置,应用,重新启用设置,然后再重新应用.

For me, I had to disable the setting, apply, re-enable the setting and re-apply once more.

它现在的行为如上所述.

It now behaves as stated above.

这篇关于Pycharm:如何在遇到调试点时专注于编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆