GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.mediawiki.org — Node.js debugging - MediaWiki Stack overflowsIt used to be hard to debug stack overflows in node, as it would just bomb without producing a stack trace. This has thankfully changed with node 0.11. It also helps to increase the stack depth to spot larger recursions: $ node --stack-trace-limit=1000 <script.js> Chrome DevToolsSee also: Debugging Node.js Nightlies with Chrome DevTools. Available as of Node v6.3.0. $ node --inspect script.js To start debugging, open the following URL in Chrome: chrome-devtools://devtools/remote/serve_file/@../inspector.html?.. For command-line scripts that run immediately, you may want to use For services you'll usually want to omit $ node --inspect ./node_modules/.bin/service-runner -n 1
Debugger listening on port 9229.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@../inspector.html?..&ws=localhost:9229/node
Debugger listening on port 5859.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@../inspector.html?..&ws=localhost:5859/node
Made a request to "http://localhost:8000/localhost/v3/page/html/Main_Page" and stopped the debugger. Example flame chart: https://i.imgur.com/HshfDOx.png ProfilingA good tool for profiling nodejs applications is the combination of nodegrind and kcachegrind. Quick start: $ npm install -g nodegrind $ nodegrind <script.js> Profile written to "callgrind.out.8004" Try `kcachegrind "callgrind.out.8004"` $ kcachegrind callgrind.out.8004 |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |