Debugging Jest test cases using node-inspector

Looks like the issue is that jest is using harmonize, which spawns a child process to ensure that the –harmony option is used. harmonize/harmonize.js, lines 30-35 var node = child_process.spawn(process.argv[0], [‘–harmony’].concat(process.argv.slice(1)), {}); node.stdout.pipe(process.stdout); node.stderr.pipe(process.stderr); node.on(“close”, function(code) { process.exit(code); }); I was able to successfully debug jest tests (although tests that use JSX transforms are incredibly … Read more

Using node-inspector with Grunt tasks

To run grunt in debug, you need to pass the grunt script to node explicitly: node-debug $(which grunt) task and put a debugger; line in your task. node-inspector will then open a browser with debugging tools. Edit 28 Feb 2014 node-inspector has added the command node-debug, which launches node in a –debug state and opens … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)