You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using dape for debugging on nodeJS services without issue, and had used two configurations (actually from previous issues). Right now I'm using this one:
For runnning node projects, I'm using a devenv.sh, where I have nodeJS installed.
This may be because of my environment, but I want to understand why. So, every time I used this configuration, I had these messages in the repl:
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/signal-exit/dist/cjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/signal-exit/dist/cjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/signal-exit/dist/cjs/signals.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/signal-exit/dist/cjs/signals.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minipass/dist/commonjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minipass/dist/commonjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/lru-cache/dist/commonjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/lru-cache/dist/commonjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/assert-valid-pattern.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/ast.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/ast.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/brace-expressions.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/brace-expressions.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/unescape.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/unescape.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/escape.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/minimatch/dist/cjs/escape.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/path-scurry/dist/cjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/path-scurry/dist/cjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/http-proxy-agent/dist/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/http-proxy-agent/dist/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/agent-base/dist/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/agent-base/dist/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/agent-base/dist/helpers.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/agent-base/dist/helpers.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/https-proxy-agent/dist/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/https-proxy-agent/dist/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/https-proxy-agent/dist/parse-proxy-response.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks-proxy-agent/dist/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/client/socksclient.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/client/socksclient.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/smart-buffer/build/smartbuffer.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/smart-buffer/build/smartbuffer.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/smart-buffer/build/utils.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/smart-buffer/build/utils.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/constants.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/constants.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/helpers.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/helpers.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/util.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/util.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/receivebuffer.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/socks/build/common/receivebuffer.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/walk-up-path/dist/cjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/walk-up-path/dist/cjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/index.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/index.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/posix.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/posix.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/win32.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/win32.js.map'
Could not read source map for file:///nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/options.js: ENOENT: no such file or directory, open '/nix/store/kwnl5cxqpa30alxwdksrjnzjrj4wrww3-nodejs-20.11.1/lib/node_modules/npm/node_modules/which/node_modules/isexe/dist/cjs/options.js.map'
After this error messages however, the debugger would start correctly and I could work without issues. The real problem comes here, from after a debugging session, I restarted dape through =dape-restart=. And after the above 'normal' error messages, it did not worked, and I could see a session terminated message with this:
Could not read source map for file:///my-user/my-project/node_modules/typescript/lib/typescript.js: ENOENT: no such file or directory, open '/myuser/myprojectnode_modules/typescript/lib/typescript.js.map'
It ends with an error code 2. Also, it appears to be prominent when I use restart.
Now, if I restart, sometimes it does work even after the last message. So I think this may be a timeout because my project takes too long to restart.
The reason from this issue is:
Understand what is tape searching and, if it is important for him, provide it
Specifically, typescript.js.map doesn't exist, only typescript.js.
Is there anything I can improve from my workflow?
And finally, having a workable nodeJS debug, if it is possible to add a NodeJS (I can add it) outline, specific for nodeJS processes, and how to configure it. Since I did had to spend some time understanding dape and how debuggers work in order to use it. Kudos to @svaante for helping me in my previous issues.
The text was updated successfully, but these errors were encountered:
Hello Dape team!,
I've been using dape for debugging on nodeJS services without issue, and had used two configurations (actually from previous issues). Right now I'm using this one:
For runnning node projects, I'm using a devenv.sh, where I have nodeJS installed.
This may be because of my environment, but I want to understand why. So, every time I used this configuration, I had these messages in the repl:
After this error messages however, the debugger would start correctly and I could work without issues. The real problem comes here, from after a debugging session, I restarted dape through =dape-restart=. And after the above 'normal' error messages, it did not worked, and I could see a session terminated message with this:
Could not read source map for file:///my-user/my-project/node_modules/typescript/lib/typescript.js: ENOENT: no such file or directory, open '/myuser/myprojectnode_modules/typescript/lib/typescript.js.map'
It ends with an error code 2. Also, it appears to be prominent when I use restart.
Now, if I restart, sometimes it does work even after the last message. So I think this may be a timeout because my project takes too long to restart.
The reason from this issue is:
And finally, having a workable nodeJS debug, if it is possible to add a NodeJS (I can add it) outline, specific for nodeJS processes, and how to configure it. Since I did had to spend some time understanding dape and how debuggers work in order to use it. Kudos to @svaante for helping me in my previous issues.
The text was updated successfully, but these errors were encountered: