Akshay Mahure
Akshay Mahure

Reputation: 191

Unable to debug issue Apache cordova project in vs 2017

I have install visual studio 2017 with almost all components on my PC (windows 8.1) but when I Add new Apache Cordova project and run it will show "unable to start debugging. The startup project cannot be launched. Ensure that the correct project is set as the startup project. The startup project can be changed by selecting 'Set as startup project' command from right click menu solution explorer. Additionally make sure its debug settings are correctly configured in the project properties" enter image description here Other project types are work fine. Project Properties

enter image description here

enter image description here

I have already set startup project but it is not working please help

Upvotes: 3

Views: 968

Answers (2)

GP2005
GP2005

Reputation: 11

In case someone is struggling with the same, here's the step to fix it. Go to Visual Studio "Tools" > "Extension and Updates" > then search for "Cordova". Make sure it is turned on:

In case someone is struggling with the same, here's the step to fix it. Go to Visual Studio "Tools" > "Extension and Updates" > then search for "Cordova". Make sure it is turn on.

Upvotes: 1

Chris Matthews
Chris Matthews

Reputation: 81

I just lost a couple of hours to this error. For me, the solution was to follow the instructions available at this link:

In case that link ever dies, here is a copy of the instructions:

If you get a message in Visual Studio that says you can't start debugging your app, try these steps. Also, try these steps if no emulators or devices are listed in the debug target dropdown list.

Close all instances of Visual Studio.

Open this folder:

C:\Users\username%appdata%\Local\Microsoft\Phone Tools

Rename the CoreCon folder to any other name (CoreCon will get recreated when you rebuild).

Restart Visual Studio and try again.

Upvotes: 0

Related Questions