Visual Studio 2015 RTM - Debugging not working

后端 未结 25 2243
感情败类
感情败类 2020-11-30 22:11

I have installed VS 2015 RTM (nothing else) and I\'m unable to debug any solution, not matter if it\'s an existing one or a brand new one (created with VS 2015 and compiled

相关标签:
25条回答
  • 2020-11-30 23:05
    1. Stop debugging.
    2. Edit csproj.user file
    3. Find section wrote below:

      <SilverlightDebugging>True</SilverlightDebugging>

    4. Change Value to "False"
    5. Unload and reload your project in Visual Studio.
    6. Sometimes it needed to close Visual Studio.
    0 讨论(0)
  • 2020-11-30 23:06

    Thought I would post this in case it helps anyone. I installed a clean Win 10 and Visual Studio 2015, tried to debug an existing solution and had problems. Followed some advice listed here and other places but none worked.

    How I got the debugging to work as normal was to change the Solution Configuration just below the menus. I had it set previously to Release mode, changed this to Debug and then cleaned/recompiled and hey presto, debugging started working as normal. See the image for info:

    0 讨论(0)
  • 2020-11-30 23:06

    I changed my Platform Target from "Any CPU" to "x64".

    Setting available at : Project Properties -> Build -> General: "Platform Target"

    I use VS 2015.

    0 讨论(0)
  • 2020-11-30 23:06

    In my case, I found a hint in the output window that the exception that stopped the debugger was a ContextSwitchDeadlock Exception, which is checked by default in the Exception Settings. This Exception typically occurs after 60 seconds in Console applications. I just unchecked the exception and everything worked fine.

    0 讨论(0)
  • 2020-11-30 23:09

    I had a very similar issue recently, related to debugging settings.

    Firstly have you tried resetting all your settings? I think it may be related to that as you say it is project independent and you've deleted all application data.

    Tools-> Import and Export Settings Wizard -> Reset all settings

    Don't worry, it gives you the option to save current settings.

    Secondly if this fails, I would suggest looking at the event log.

    Entering break mode would suggest that the DE (debug engine) is sending a synchronised stop event to visual studio like IDebugExceptionEvent2. I would take a look at the event log for exceptions like failures in loading referenced assemblies (like .NET runtimes, etc) or environment access restrictions.

    Something is telling the debugger to stop your running application, its just a case of finding it.

    0 讨论(0)
  • 2020-11-30 23:09

    I have had similar issues on my svc application run on visual studio 2015, the solution was to change solution platform from "Any CPU" to "x86", if you cannot see the x86 option then click on "Configuration Manager" and go to your target project and change the platform, you'll need to select the dropdown and click "New", on the pop up, click the drop down list under "new platform" and select x86, save your changes and rebuild(See attached)

    0 讨论(0)
提交回复
热议问题