microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.66k stars 276 forks source link

Having issues with Debug Console REPL functionality (potentially related to Microsoft Edge Tools for VS Code extension) #1203

Closed mliao95 closed 2 years ago

mliao95 commented 2 years ago

Describe the bug The REPL functionality of the debug console is inconsistently working. However, console log statements are still reaching the debug console. image

This may be related to having the Microsoft Edge Tools for VS Code extension installed, but the issue seems to persist even after uninstalling and reinstalling VS Code.

To Reproduce Steps to reproduce the behavior:

  1. Open VSCode - Insiders (unsure if it repros on stable)
  2. Create a new project sample html project
  3. Start server in directory with http-server
  4. Configure launch.json to this:
    {
    "configurations": [
        {
            "name": "Launch Microsoft Edge",
            "request": "launch",
            "type": "pwa-msedge",
            "url": "http://127.0.0.1:8080/index.html"
        }
    ]
    }
  5. Run and Debug "Launch Microsoft Edge"
  6. Attempt to interact with the Debug Console and get values for things like "window" or "2 + 3"
  7. If it doesn't repro, close out the debug instance and repeat from step 5.
  8. If it still isn't repro-ing, try downloading the latest "Microsoft Edge Tools for VS Code" and retry steps 5+.

VS Code Version: 1.65.0-insider

connor4312 commented 2 years ago

Duplicates https://github.com/microsoft/vscode/issues/138963