浏览代码

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 {