瀏覽代碼

fix debug flag

George S. Baugh 2 年之前
父節點
當前提交
a9fb72850d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Playwright.pm

+ 1 - 1
lib/Playwright.pm

@@ -640,7 +640,7 @@ sub DESTROY ($self) {
 }
 
 sub _start_server ( $port, $timeout, $debug, $cleanup ) {
-    $debug = $debug ? '-d' : '';
+    $debug = $debug ? '--debug' : '';
 
     $ENV{DEBUG} = 'pw:api' if $debug;
     my $pid = fork // confess("Could not fork");