How to debug two or more files in Visual Studio by node.js

Hello do you know anybody how to debug two or more files in Visual Studio by node.js. My debugger works just in one file now (test.js) When I try to debug in another file still debug the test.js. Its note to good when I would like to use export or require in javascript. Anybody know the solution for this problem please?

My launch.json file.

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}\\test.js",
            "skipFiles": [
                "<node_internals>/**"
            ]
        }
    ]
}

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.