From 17de697fe9f64e238a8df0fbc6358b8e578e45f2 Mon Sep 17 00:00:00 2001 From: Julie Date: Wed, 5 Mar 2014 16:00:45 -0800 Subject: [PATCH] fix(debug): make new debug work on windows too Closes #580 --- lib/runner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/runner.js b/lib/runner.js index 93ac6701a..ad76cd3fc 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -19,11 +19,12 @@ var Runner = function(config) { this.config_ = config; if (config.v8Debug) { - process.kill(process.pid, 'SIGUSR1'); + // Call this private function instead of sending SIGUSR1 because Windows. + process._debugProcess(process.pid); } if (config.nodeDebug) { - process.kill(process.pid, 'SIGUSR1'); + process._debugProcess(process.pid); var flow = webdriver.promise.controlFlow(); flow.execute(function() {