Explorar el Código

add launch argument debugging

George S. Baugh hace 4 años
padre
commit
98f6006479
Se han modificado 1 ficheros con 5 adiciones y 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 {