Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67161 - [code] Debugging doesn't work after Node.js update to 14.5.0

Attached to Project: Community Packages
Opened by Vuk Mirovic (wooque) - Wednesday, 01 July 2020, 09:47 GMT
Last edited by freswa (frederik) - Saturday, 04 July 2020, 21:10 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe LaĆ­ns (FFY00)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Debugging doesn't work after Node.js update to 14.5.0

Additional info:
* package version(s)
1.46.1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Create javascript file with just simple console.log, try to run debugger, you'll get error:
/usr/bin/node /home/vuk/bla/bla.js
Debugger listening on ws://127.0.0.1:40003/6fd37a30-7525-4a30-bd94-99355a2ea44d
For help, see: https://nodejs.org/en/docs/inspector
Error in the js-debug bootloader, please report to https://aka.ms/js-dbg-issue: Error [ERR_INSPECTOR_ALREADY_ACTIVATED]: Inspector is already activated. Close it with inspector.close() before activating it again.
at Object.inspectorOpen [as open] (inspector.js:137:11)
at /usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:86060
at /usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:86087
at Object.<anonymous> (/usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:86383)
at n (/usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:110)
at /usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:902
at Object.<anonymous> (/usr/lib/code/extensions/ms-vscode.js-debug/src/bootloader.bundle.js:1:912)
at Module._compile (internal/modules/cjs/loader.js:1201:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
at Module.load (internal/modules/cjs/loader.js:1050:32)
Process exited with code 0
This task depends upon

Closed by  freswa (frederik)
Saturday, 04 July 2020, 21:10 GMT
Reason for closing:  Upstream
Comment by Francis (paperjam_6000) - Friday, 03 July 2020, 15:29 GMT
hi, same problem for me.
Quickly : in launch.json, if you have "type": "pwa-node", replace with "type": "node".

VSC Developpers have modified the behavior of debug config :
https://code.visualstudio.com/updates/v1_46#_automatic-debug-configurations-improvements
Last release is 14.5.1.

What is recommended : delete the file launch.json first, and start debugging, you will be prompted to choose from a list : select node.js




Loading...