VSCode debugging not working for NodeJs application

sumit agarwal

I have added the configuration in the launch.json file with the following details :

{
    "name": "Attach"
    "type": "node",
    // TCP/IP address. Default is "localhost".
    "address": "localhost",
    // Port to attach to.
    "port": 5858
}

Now I start my app with the following command : node --debug-brk ./bin/www

When i go to VSCode and select Attach in the debugging menu on the top and click on the play button. It attaches, but when i go to browser and open a page, it doesn't it the breakpoint or the handler function in my index.js file. Can you please help what could be going wrong?

Isidor Nikolic

Your breakpoints are probably set too early and are not registered by node. It should help if you set the breakpoints after you have attached.

We have improved this experience in VSCode and it should be available in 0.4.0

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Debugging Node.JS CLI application with VSCode?

From Dev

Debugging vanilla jasmine for a node.js application in VSCode

From Dev

Debugging iOS application: crash under Xcode but keep working on iPhone

From Dev

Debugging is not Working

From Dev

Nodejs serverside debugging

From Dev

Debugging GO on VSCode using Delve

From Java

NodeJS application stops working when containerised [FTP server in a container]

From Dev

Running nodejs, expressjs, socket.io application on a real server not working

From Dev

eclipse debugging is not working as expected

From Dev

jQuery .click() not working (debugging)

From Dev

Debugging a PhoneGap application

From Dev

Debugging remote application in eclipse?

From Dev

Debugging a frozen web application

From Dev

Debugging Qt application

From Dev

Debugging a PhoneGap application

From Dev

Debugging Remote Java Application -

From Dev

Debugging Web Application

From Dev

Intellisense not automatically working VSCode

From Dev

vscode typing autocompletion not working

From Dev

vscode Intellisense not working

From Dev

registerSignatureHelpProvider not working in VSCode

From Dev

vscode Intellisense not working

From Dev

vscode typing autocompletion not working

From Dev

VSCode AngularJS Intellisense not working

From Dev

VSCode TypeScript problemMatcher not working

From Dev

Unity3D VSCode debugging on Windows

From Dev

Debugging custom Yeoman generator using VSCode

From Dev

Reading input during debugging in Python with VSCode

From Dev

vscode: how to setup debugging mono/c#?