Skip to content

Instantly share code, notes, and snippets.

@lzhoucs
Last active May 30, 2017 16:47
Show Gist options
  • Save lzhoucs/baa0174a791b1c282c888297afee2619 to your computer and use it in GitHub Desktop.
Save lzhoucs/baa0174a791b1c282c888297afee2619 to your computer and use it in GitHub Desktop.
node debug with built in v8 inspector

Debug grunt tasks

node --inspect --debug-brk $(which grunt) <TaskName>

Debug intern node tests

replace client with runner, intern with intern-local for functional tests

node --inspect --debug-brk node_modules/intern/client config=_build/tests/intern

Dojo2 example:

node --inspect --debug-brk node_modules/intern/client config=_build/tests/intern reporters={"id":"tests/support/Reporter","file":"coverage-unmapped.json"}
node node_modules/intern/runner config=_build/common/tests/intern-local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment