I installed node-inspector 0.12.8 and am running node 5.6.0
When I run node-debug I get the following errors. I am now unable to debug.
I see a lot of chatter in the web about same or similar issues but have not seen any hint on how to get around this.
Hate to revert to logging to console :-)
My node-debug line looks as follows:
node-debug -d 5858 -p=5859 --nodejs --harmony app.js
Runtime.js:358 Assertion failed: Unknown experiment canvasInspectionRuntime._assert @ Runtime.js:358
InspectorBackend.js:185 Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/
So I am using a self-made proxy to communicate between node inspector and my own script debugger. The reason is to be able to give the ability of debugging my script using node inspector (my script cannot be debugged with just any debugger as my script has its own debugger API).
Now, I am trying to get the callstack to show up. But when I log the request and response between Node inspector and the proxy, I can see that the break event happens but nothing else happens afterwards. Sometimes the "backtrace" happens after that and sometimes it does not. Callstack or scopes are not at all populated in Node Inspector. Any clues as to why that could be?
I'm installing node-inspector with npm inside an organisation with corporate proxy. I have configured the proxy settings for npm, but still the installation for nod-inspector is failing.
attaching the debug log below, please help with suggestions:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'node-inspector',
1 verbose cli '--save',
1 verbose cli '-g' ]
2 info using npm@3.10.9
3 info using node@v4.2.4
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData node-inspector
8 silly fetchNamedPackageData node-inspector
9 silly mapToRegistry name node-inspector
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'node-inspector',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'node-inspector',
12 silly mapToRegistry name: 'node-inspector',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/node-inspector
14 verbose request uri https://registry.npmjs.org/node-inspector
15 verbose request no auth needed
16 info attempt registry request try #1 at 2:25:31 PM
17 verbose request using bearer token for auth
18 verbose request id c3ad1f8f54ee2ba7
19 http request GET https://registry.npmjs.org/node-inspector
20 http 200 https://registry.npmjs.org/node-inspector
21 verbose headers { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
21 verbose headers etag: '"BNGT0I0UB4ZBMYHKTJ3K06OTU"',
21 verbose headers 'content-type': 'application/json',
21 verbose headers 'content-encoding': 'gzip',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers 'transfer-encoding': 'chunked',
21 verbose headers 'accept-ranges': 'bytes',
21 verbose headers date: 'Mon, 07 Nov 2016 08:55:31 GMT',
21 verbose headers via: '1.1 varnish',
21 verbose headers connection: 'close',
21 verbose headers 'x-served-by': 'cache-sin6922-SIN',
21 verbose headers 'x-cache': 'MISS',
21 verbose headers 'x-cache-hits': '0',
21 verbose headers 'x-timer': 'S1478508931.602628,VS0,VE273',
21 verbose headers vary: 'Accept-Encoding' }
22 silly get cb [ 200,
22 silly get { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
22 silly get etag: '"BNGT0I0UB4ZBMYHKTJ3K06OTU"',
22 silly get 'content-type': 'application/json',
22 silly get 'content-encoding': 'gzip',
22 silly get 'cache-control': 'max-age=300',
22 silly get 'transfer-encoding': 'chunked',
22 silly get 'accept-ranges': 'bytes',
22 silly get date: 'Mon, 07 Nov 2016 08:55:31 GMT',
22 silly get via: '1.1 varnish',
22 silly get connection: 'close',
22 silly get 'x-served-by': 'cache-sin6922-SIN',
22 silly get 'x-cache': 'MISS',
22 silly get 'x-cache-hits': '0',
22 silly get 'x-timer': 'S1478508931.602628,VS0,VE273',
22 silly get vary: 'Accept-Encoding' } ]
23 verbose get saving node-inspector to C:\Users\Administrator\AppData\Roaming\npm-cache\registry.npmjs.org\node-inspector.cache.json
24 verbose correctMkdir C:\Users\Administrator\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
25 silly install normalizeTree
26 silly loadCurrentTree Finishing
27 silly loadIdealTree Starting
28 silly install loadIdealTree
29 silly cloneCurrentTree Starting
30 silly install cloneCurrentTreeToIdealTree
31 silly cloneCurrentTree Finishing
32 silly loadShrinkwrap Starting
33 silly install loadShrinkwrap
34 silly loadShrinkwrap Finishing
35 silly loadAllDepsIntoIdealTree Starting
36 silly install loadAllDepsIntoIdealTree
37 silly resolveWithNewModule node-inspector@0.12.8 checking installable status
v8-debug@0.7.7 preinstall /usr/local/lib/node_modules/.staging/v8-debug-5be573b2
> node -e 'process.exit(0)'
> v8-profiler@5.6.5 preinstall /usr/local/lib/node_modules/.staging/v8-profiler-4971d27a
> node -e 'process.exit(0)'
/usr/local/bin/node-inspector -> /usr/local/lib/node_modules/node-inspector/bin/inspector.js
/usr/local/bin/node-debug -> /usr/local/lib/node_modules/node-inspector/bin/node-debug.js
> v8-debug@0.7.7 install /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://node-inspector.s3.amazonaws.com/debug/v0.7.7/node-v51-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for v8-debug@0.7.7 and node@7.4.0 (node-v51 ABI) (falling back to source compile with node-gyp)
node-pre-gyp install --fallback-to-build
node-pre-gyp install --fallback-to-build