简体   繁体   English

在 VS2015 中禁用“中断模式”页面

[英]Disable “Break Mode” page in VS2015

Recently migrated from VS2010 to 2015. Now when I pause a running app to work on it, I get this very annoying "Break Mode" page with "The application is in break mode".最近从 VS2010 迁移到 2015。现在当我暂停一个正在运行的应用程序来处理它时,我会看到这个非常烦人的“中断模式”页面,其中包含“应用程序处于中断模式”。 Well, no shoot Sherlock, I pressed pause.好吧,不拍夏洛克,我按下了暂停键。 I know its in break mode.我知道它处于休息模式。 The page is annoying and takes me away from the code I was going to work on completely unnecessarily.该页面很烦人,使我完全不必要地离开了我将要处理的代码。

I didn't get this annoying page in 2010. I may have some setting switched back then on 2010 but too long to remember.我在 2010 年没有看到这个烦人的页面。我可能在 2010 年切换了一些设置,但太久了,记不得了。

Is there a way to disable this silly break mode page in VS2015?有没有办法在 VS2015 中禁用这个愚蠢的中断模式页面?

The best solution I've found so far is to drag the "Break Mode" tab to the bottom of your screen (so it is attached like a toolbar window) and make it as small as possible.到目前为止,我发现的最佳解决方案是将“中断模式”选项卡拖到屏幕底部(因此它像工具栏窗口一样附加)并使其尽可能小。 Then when you pause and get this screen it at least doesn't cover your existing view.然后当您暂停并获得此屏幕时,它至少不会覆盖您现有的视图。

There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place.有一个免费的扩展可以解决这个问题: 禁用VS Market Place 提供的No Source Available Tab

This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.这个小扩展将阻止标题为“No Source Available”的工具窗口出现在 Visual Studio 中,并将焦点保留在当前活动的选项卡上。

在工具→选项→调试→检查“使用托管兼容模式”下

I had this annoying problem, too and did not realise, that i turned the Exception Settings to "Break on all exceptions".我也遇到了这个烦人的问题,但没有意识到,我将异常设置设置为“中断所有异常”。 Then there where some Exceptions in external Code, where the debugger stopped, but I could not see the code, as it was in a Framework.然后在外部代码中有一些异常,调试器在那里停止,但我看不到代码,因为它在框架中。 Pretty annoying.很烦人。

To reset Exception Settings in VS2017:在 VS2017 中重置异常设置:

ctrl+al+e -> right click on the opening window -> reset to defaults

Maybe this helps someone =)也许这对某人有帮助 =)

Dont use this primarily.不要主要使用这个。 Use atchoum's solution.使用 atchoum 的解决方案。 its the BEST.它是最好的。

Another option:另一种选择:

I like to use the keyboard instead of the mouse, so I invoke a pause with CTRL + ALT + BREAK(or you can click pause) regardless this causes the annoying "Break mode" window to appear我喜欢使用键盘而不是鼠标,所以我用 CTRL + ALT + BREAK(或者你可以点击暂停)调用暂停,不管这会导致烦人的“中断模式”窗口出现

When it comes up and assuming you still have the CTRL + ALT + BREAK keys held down- Just release the ALT and BREAK keys and hit the F4 key当它出现并假设您仍然按住 CTRL + ALT + BREAK 键时 - 只需松开 ALT 和 BREAK 键并按 F4 键

This will close the annoying break mode window and take you to the page and spot your had the cursor on before you pressed the break combination of CTRL + ALT + BREAK.这将关闭恼人的中断模式窗口,并带您进入页面并在您按下 CTRL + ALT + BREAK 的中断组合之前发现您的光标所在。

So... in one foul swoop press所以......在一次犯规中
CTRL + ALT + BREAK (to enter break mode) and then CTRL + ALT + BREAK(进入中断模式)然后
CTRL + F4 (to close the stupid "break mode" window and place the cursor where you were before you hit CTRL + ALT + BREAK ) CTRL + F4(关闭愚蠢的“中断模式”窗口并将光标放在你点击 CTRL + ALT + BREAK 之前的位置)

I was having same problem and was tired of searching for a solution but, in end, I found out there was one error in my code at specific form;我遇到了同样的问题并且厌倦了寻找解决方案,但最后,我发现我的代码中有一个特定形式的错误; after changing that code I didn't got any break mode type error.更改该代码后,我没有遇到任何中断模式类型错误。

CODE WHEN ERROR (Break mode) OCCURRED发生错误时的代码(中断模式)

Private Sub TextBox1_TextChanged(sender As Object, e As KeyPressEventArgs) Handles TextBox1.TextChanged

CODE WHEN ERROR (Break mode) DIDN'T OCCUR代码当错误(中断模式)没有发生

Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged

May be this can help so please check where and when your code triggers something.可能这会有所帮助,因此请检查您的代码在何时何地触发某些内容。

To Disable "Break Mode" page go to:要禁用“中断模式”页面,请转到:

Tools --> Options --> Debugging --> General工具 --> 选项 --> 调试 --> 常规

Uncheck the checkbox of "Enable Just My Code"取消选中“仅启用我的代码”复选框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM