Visual Studio 2017调试器中断应用程序 [英] Visual Studio 2017 Debugger breaks application

查看:125
本文介绍了Visual Studio 2017调试器中断应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下问题:我正在为我的大学课程创建控制台应用程序.现在,我进行了以下设置:一个WPF应用程序,它通过互操作调用启动控制台-基本上就是WPF包装的控制台项目.

I have the following issue: I am working on a console application for my university class. Now I got the following setup: A WPF application which launches the console via interop calls - so basically a WPF wrapped console project.

我需要WPF,就像以图形形式可视化我的数据的框架一样.在Visual Studio 2015中,它确实可以正常工作,但是现在坏了.

I need WPF just as framework for visualisation of my data in form of graphs. In Visual Studio 2015 it did work fine, but now it's broken.

我知道VS 15处于RC状态,但是我从RC状态开始使用了所有以前的版本,并且从未遇到任何中断问题.由于必须重新安装操作系统,所以我认为我已经可以使用VS 15.毕竟,VS确实会留下很多痕迹,一旦它们被卸载,并且在 15是一种痛苦...要彻底消除.

I know VS 15 is in RC state but I used all prior versions from RC state on and never had any breaking issues. And since I had to reinstall my OS I thought I would use VS 15 already. After all VS does leave a lot of traces once uninstalled and all prior to 15 are a pain ... to remove completely.

现在,每次调试应用程序时,我都会收到IOException消息:句柄无效."调用任何与控制台类相关的方法时.当我不首先安装调试器时,它就可以正常工作.但是后来我找不到实际的错误 我有.

Now everytime I debug my application I get an IOException saying: "The handle was invalid." when calling any Console-class related methods. When I don't start with a Debugger attatched, it does work fine. But then I can't find the actual errors I've got.

此问题是否有任何解决方法?也许是一些可以关闭的新功能或其他功能?另外,我希望这个错误能尽快得到解决.

Is there any workaround for this issue? Maybe it's some new function that can be turned off or something? Else I hope this bug gets fixed soon.

谢谢!

推荐答案

SharpSkylazer,您好

Hi SharpSkylazer,

此问题仅发生在当前项目或Visual Studio 2017 RC创建的所有项目中吗?我创建了一个WPF项目,该项目用于调用控制台应用程序,并且在我新安装的VS2017 RC中可以正常工作.

Is this issue only occurs in current project or all projects created by Visual Studio 2017 RC? I create a WPF project which used to invoke a console application and it works fine in my new installed VS2017 RC.

如果仅在此特定项目中发生,则此问题应与升级到VS2017时的项目本身有关.建议您创建一个新的WPF项目,然后将原始项目文件复制到该新项目中,然后再次尝试调试.

If just occurs in this specific project, this issue should be related to your project itself when upgrade to VS2017. I suggest you create a new WPF project and then copy the original project files into this new project and try debug again.

如果在VS2017 RC中调试所有项目时发生此问题,则恐怕VS2017 RC安装中存在一些问题.我建议您修复它以检查是否可以解决此问题.

If this issue occurs when debugging all projects in VS2017 RC, I'm afraid that there has some problem in your VS2017 RC installation. I suggest you repair it to check whether this issue could be fixed.

此外,VS2017 RC已发布更新.请打开VS2017 RC安装程序,它将提示您安装此更新.

In addition, VS2017 RC has an Update released. Please open the VS2017 RC installer, it will prompt you to install this update.

最好的问候,
威威

Best Regards,
Weiwei


这篇关于Visual Studio 2017调试器中断应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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