Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

VSCode: Debug > Add Configuration, nothing happens

$
0
0

Using Visual Studio Code v 1.32.3 on Windows 10, when I navigate to Debug > Add Configuration, nothing happens. No errors or other messages, nothing appears to be written to the workspace folder, no errors in Event Viewer, so far just nothing.

I am somewhat new to VSCode so please don't discount that this might be a newbie error. Potentially notable is that the project is a Cordova project, I have created a Workspace (and confirmed that I am using it and not just opening the folder).

What I have checked so far:

  • Verifying that nothing is actively trying to build or otherwise access that folder. PhoneGap Desktop is stopped and no emulators running.
  • Restarted PC
  • Reinstalled the Cordova Tools plugin

Interestingly if I open a new instance of VS Code and before opening any file or folder I go back to Debug > Add Configuration I will get a message "Please first open a folder in order to do advanced debug configura..." So this indicates that there may be a problem with my workspace or directory but I haven't found it yet.

Any ideas greatly appreciated.

Edit 1:

Version of Cordova Tools is 1.8.0.

I've since tried adding my own launch.json to the .vscode directory. Contents:

{
    "version": "0.2.0",
    "configurations": [
    {
        "name": "Run android on device|emulator",
        "type": "cordova",
        "request": "launch",
        "platform": "android",
        "target": "device|emulator",
        "sourceMaps": true,
        "cwd": "${workspaceFolder}"
    },
    ]
}

Notable is that in the bottom right corner of the window a "Add Configuration" button appears while I am viewing launch.json and it does appear to work correctly, prompting me with snippets to add.

None of these impact my ability to debug unfortunately.


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>