vscode-js-debug icon indicating copy to clipboard operation
vscode-js-debug copied to clipboard

Debugging Node.js does not work after latest update

Open NTTAKR opened this issue 3 years ago • 7 comments

Debugging node.js apps worked. I closed vscode vscode shows a small window with updates I open vscode again Debugging does not work anymore

Error Message pops up: "Error activating auto attach, please report to https://aka.ms/js-dbg-issue Right bottom shows "Cannot read properties of undefined (reading 'logger')

What can I do?

NTTAKR avatar Apr 08 '22 12:04 NTTAKR

Please try toggling Auto Attach to Disabled and then back on again and let me know if the problem persists.

connor4312 avatar Apr 08 '22 15:04 connor4312

Already tried that. If it is on anything that enables debugging, the error message is output and the process does not start. If I disable debugging the process is started normally.

NTTAKR avatar Apr 08 '22 15:04 NTTAKR

Can you share more info about what you're trying to debug and how you're running it? Anything I can use to help reproduce. https://gifcap.dev/ may be useful.

connor4312 avatar Apr 08 '22 16:04 connor4312

Seems I have found a way it works....

There is a small triangle shown on the terminal window and in the output. If you mouse over the icon in the list of terminal windows it tells you that the terminal configuration wants to be changed. As soon as you agree to that it works again.

NTTAKR avatar Apr 08 '22 16:04 NTTAKR

Ah, yea. If you already used your terminal, refreshing it via that prompt is required to update your environment variables.

connor4312 avatar Apr 08 '22 16:04 connor4312

Seems the problem is not yet resolved :-(

I have debug Javascript Auto Attach Filter set to smart.
If I start the node.js app with npm start or node index.js it shows this:

Debugger listening on ws://127.0.0.1:65516/90e56882-eeed-4389-9779-dc374c42b9c6 For help, see: https://nodejs.org/en/docs/inspector

On the right side an error toast appears with "Cannot read properties of undefined (reading 'logger')"

The program does NOT run.

If I set Auto Attach Filter to disabled the program works, but I have no debugging.

Where does this error come from? How can I solve this?

NTTAKR avatar Apr 15 '22 11:04 NTTAKR

Sorry, this issue fell through the cracks. Are you still running into it in modern versions?

connor4312 avatar Dec 05 '23 19:12 connor4312