Skip to content

Instantly share code, notes, and snippets.

@evanlucas
Created September 7, 2015 19:25
Show Gist options
  • Save evanlucas/9f5d0e51d37d74f0da4c to your computer and use it in GitHub Desktop.
Save evanlucas/9f5d0e51d37d74f0da4c to your computer and use it in GitHub Desktop.
diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js
index 6d1c22d..6155f9a 100644
--- a/lib/internal/child_process.js
+++ b/lib/internal/child_process.js
@@ -271,6 +271,10 @@ ChildProcess.prototype.spawn = function(options) {
this.spawnfile = options.file;
this.spawnargs = options.args;
+ console.log(require('util').inspect(options, {
+ colors: true,
+ depth: null
+ }));
var err = this._handle.spawn(options);
// Run-time errors should emit an error, not throw an exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment