Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot debug in visual studio 2017

Debug error

I cannot start the debugger in Visual Studio 2017. I get this error

"Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:1904)"

I went to submit an incident to Microsoft but they want $499 for the pleasure. Don't see why I should have to pay when their software is broken!

like image 438
M. T. Avatar asked May 11 '18 13:05

M. T.


People also ask

Why can't I start debugging in Visual Studio?

Go to Solution Explorer, right-click your project go to properties, click Debug, at the bottom there is a check box, un-check the check box that states 'Enable the Visual Studio hosting process'.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

Why is my breakpoint not working?

If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the code by default. Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt. To fix this issue, rebuild the project.

How do I fix Debug target in Visual Studio?

Go to Build > Configuration Manager, and make sure the project has selected the Build. Then rebuild the project and see. If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


2 Answers

I'm using it successfully with the following options enabled.

In Visual Studio go to: Tools -> Options -> Debugging -> General

  • Enable JavaScript debugging for Asp.Net (Chrome, Edge and IE)
  • Enable Legacy Chrome JavaScript debugger for ASP.NET
like image 187
Renato Mairesse Jr Avatar answered Nov 14 '22 15:11

Renato Mairesse Jr


I solved this with:

In Visual Studio go to: Tools -> Options -> Debugging -> General

  • Disabled JavaScript debugging for Asp.Net (Chrome, Edge and IE)
like image 33
Camila Alvarado Avatar answered Nov 14 '22 14:11

Camila Alvarado