简体   繁体   English

本地Windows调试器已替换为Attach,并且无法运行和调试我的程序

[英]Local windows debugger replaced with attach and cannot run and debug my program

For some ambiguous reason MS visual studio 2013 has decided to replace local windows debugger with the word attach next to the big green play button. 由于某些不明确的原因,MS Visual Studio 2013已决定用绿色大播放按钮旁边的attach替换本地Windows调试器。 I can no longer run and debug my program that I am trying to work on at the moment. 我现在无法再运行和调试我要尝试的程序。 I have tried tooth and nail for the past hour to fix the issue with no resolve. 在过去的一个小时里,我已经尝试过用牙齿和指甲来解决问题,但仍未解决。 I would simply like to know how to get the "local windows debugger" back if that is possible. 如果可能的话,我只是想知道如何取回“本地Windows调试器”。

I just had this problem, every time I went to open up my file like I normally do it came up with a plain page and instead of the start button it was the attach button. 我只是遇到了这个问题,每次我像往常一样打开文件时,它会显示一个普通页面,而不是开始按钮,而是附加按钮。

To solve it all I did was, opened my projects, located where the folder was for the programme I wanted to access. 为了解决这个问题,我打开了项目,位于要访问的程序所在的文件夹中。

Then I opened the .snl and when the blank screen and the attach button appeared again I went to the view drop down menu and clicked on solution explorer. 然后,我打开.snl,当黑屏和附加按钮再次出现时,我进入视图下拉菜单,然后单击解决方案资源管理器。 Then it opened to my right and I opened the tab that had the console name on it and finally I clicked on file name which I had named. 然后它在我的右边打开,我打开了上面带有控制台名称的选项卡,最后我单击了我命名的文件名。

By doing that my code appeared and I was able to start my programme. 通过这样做,我的代码出现了,我得以启动程序。 To prevent this in the future I pinned my file to the top of the bar so it would stay like that once it was closed.I hope this was of some help. 为了防止将来发生这种情况,我将文件固定在栏的顶部,以便文件关闭后仍保持原来的状态,希望对您有所帮助。

This happened to me before and I found that if you accidentally saved the .sln file the last time you closed Visual Studio, the .vcxproj file will not let you run and debug. 这以前发生在我身上,我发现如果上次关闭Visual Studio时不小心保存了.sln文件,则.vcxproj文件将不允许您运行和调试。

If this is your issue, you should see a .sln file in the same directory as your project file. 如果这是您的问题,则应该在与项目文件相同的目录中看到一个.sln文件。 Delete the .sln file, then open your .vcxproj project. 删除.sln文件,然后打开.vcxproj项目。 The normal menu options should reappear. 普通菜单选项应重新出现。

暂无
暂无

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

相关问题 “附加到进程”而不是“本地Windows调试器” - “Attach to Process” instead of “Local Windows Debugger” 为什么将可视化调试器附加到我的程序比直接从Visual Studio运行它更快? - Why is it faster to attach the visual debugger to my program than to run it directly from visual studio? 程序使用“windows 本地调试器”运行,但在以发布或调试模式构建后运行 .exe 文件时不运行 - Program runs with 'windows local debugger' but not when running the .exe file after building in either release or debug mode 无法在 Visual Studio 2019 中运行程序,选择本地 Windows 调试器给我错误访问被拒绝 - Unable to run a program in Visual studio 2019, Selecting Local Windows Debugger gives me error Access denied 在Visual Studio中使用本地Windows调试器运行了第一个程序。 输出窗口显示大量“找不到或打开PDB文件” - ran first program with local windows debugger in visual studio. Output window displays numerous “Cannot find or open the PDB file” 如何使用MinGW gdb调试器在Windows中调试C ++程序? - How do I use the MinGW gdb debugger to debug a C++ program in Windows? 本地 Windows 调试器不断崩溃 - Local Windows Debugger Keeps crashing 无法运行在Windows 10上使用MinGW构建的Clang的调试版本 - Debug build of Clang built with MinGW on Windows 10 cannot be run 在调试器中运行时,程序会触发一个断点,但是如果在没有调试器的情况下运行,则程序可以工作 - Program triggers a breakpoint when run in debugger but works if run without debugger C ++应用程序仅在使用本地Windows调试器时运行,而不在哪个exe文件中运行 - C++ application run only when use local windows debugger, not which exe file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM