소스 검색

add launch argument debugging

George S. Baugh 4 년 전
부모
커밋
98f6006479
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      bin/playwright_server

+ 5 - 0
bin/playwright_server

@@ -119,6 +119,11 @@ app.post('/session', async (req, res) => {
     var type    = payload.type;
     var args    = payload.args || [];
 
+    if (argv.debug) {
+        console.log("Got launch arguments:");
+        console.log(args);
+    }
+
     var result;
     if ( type && browsers[type] ) {
         try {