Explorar o código

add launch argument debugging

George S. Baugh %!s(int64=4) %!d(string=hai) anos
pai
achega
98f6006479
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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 {