atom-node-debugger
atom-node-debugger copied to clipboard
Cannot find module '_debugger' in Arch Linux Atom 1.24
node version = v9.8.0 uname -r = 4.15.7-1-ARCH Atom Version = 1.24
Error Log :
Cannot find module '_debugger'
Hide Stack Trace
Error: Cannot find module '_debugger'
at Module._resolveFilename (module.js:485:15)
at Module._resolveFilename (/usr/lib/electron/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._resolveFilename (/usr/lib/atom/src/module-cache.js:350:52)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (/usr/lib/atom/src/native-compile-cache.js:47:27)
at Object.
I believe that may have to do with the fact that you're running node v9, which uses the inspector module instead. You can still run --inspector with chrome debugger, or switch to another text editor that supports the new inspector module natively, such as VSCode.
Currently, I don't think Atom supports running the inspector module with any package out there.
This is a pretty critical bug. Is there any roadmap for a remedy. Debuggers are a PITA to setup so I'd prefer to use the one, which from my estimates, is the most widely used.
@AbdelrahmanHafez if you guide me a little, I guess I can work on it. or can you provide me some links to what have been changed in the recent node versions?
@abilogos This comment was almost 4 years ago, I'm no longer using Atom, I'd recommend using the more supported VSCode. Best of luck!