Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 17de697

Browse files
committed
fix(debug): make new debug work on windows too
Closes #580
1 parent e94fb03 commit 17de697

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: lib/runner.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ var Runner = function(config) {
1919
this.config_ = config;
2020

2121
if (config.v8Debug) {
22-
process.kill(process.pid, 'SIGUSR1');
22+
// Call this private function instead of sending SIGUSR1 because Windows.
23+
process._debugProcess(process.pid);
2324
}
2425

2526
if (config.nodeDebug) {
26-
process.kill(process.pid, 'SIGUSR1');
27+
process._debugProcess(process.pid);
2728
var flow = webdriver.promise.controlFlow();
2829

2930
flow.execute(function() {

0 commit comments

Comments
 (0)