microsoft / vscode-edge-debug2

This is a VS Code extension which helps you debug your JavaScript Code inside the Edge browser.
Other
37 stars 31 forks source link

debugger running MS Edge Dev sets navigator.webdriver #162

Open dkent600 opened 4 years ago

dkent600 commented 4 years ago

The log file is too big to attach here. You can download at: https://1drv.ms/t/s!AtFWIxI-QQD9l98NjkNNxO4wOJFk2Q?e=zb7mQ5

Steps to reproduce:

When I run the VSCode debugger against MS Edge Dev it sets navigator.webdriver to true. This is not supposed to happen. Doesn't happen if I run against Chrome.

Debugger configuration:

    {
      "name": "Edge with Webpack Debugging Server",
      "type": "edge",
      "version": "dev",
      "request": "launch",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceRoot}/src",
      "userDataDir": "${workspaceRoot}/.chrome",
      // "trace": true,
      "sourceMaps": true,
      "smartStep": true,
      "skipFiles": [
        "${workspaceFolder}/src/node_modules/tslib/*.js",
      ],
      "sourceMapPathOverrides": {
        "webpack:///./src/*": "${webRoot}/*"
      },
      "runtimeArgs": [
        "--disable-session-crashed-bubble",
        "--disable-infobars"
      ],
      "internalConsoleOptions": "openOnSessionStart"
    },