vscode icon indicating copy to clipboard operation
vscode copied to clipboard

VSCode extensions tries to parse messages from non probe-rs types

Open peku33 opened this issue 5 months ago • 1 comments

Describe the bug

I am developing a project in VSCode, containing both rust and react applications.

If I launch a debugger session for a react project (opened in react-only workspace), my "Debug Console" is immediately clogged with hundreds of messages looking like:

ERROR: probe-rs-debug: Received unknown custom event:
				{
  "session": {
    "id": "07670792-f85d-4aeb-b3b9-34d68556157e",
    "type": "pwa-chrome",
    "name": "Chrome http://localhost:5173",
    "parentSession": {
      "id": "73125e48-7b87-4290-989f-91b84283d0be",
      "type": "pwa-chrome",
      "name": "Chrome http://localhost:5173",
      ...

It looks like session -> type clearly indicated this isn't probe-rs related message.

For GUI project I use absolutely bare minimum and default launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Chrome http://localhost:5173",
            "url": "http://localhost:5173",
            "webRoot": "${workspaceFolder}",
            "runtimeArgs": [
                "--disable-web-security"
            ],
        }
    ]
}

To Reproduce

  • Install probe-rs extension on vscode
  • Open another workspace with web application
  • Start debugging session in chrome
  • Observe "Debug Console"

Expected behavior

There are no probe-rs related messages in non probe-rs debug session types.

Stacktrace


Operating System

Windows

Additional context

I am using: Version 0.24.2

peku33 avatar Jul 16 '25 19:07 peku33

Moved this here from probe-rs, the offending code seems to be https://github.com/probe-rs/vscode/blob/b4ee9bc86ae6532ea9ede96d1290780b230cb253/src/extension.ts#L289

Tiwalun avatar Jul 21 '25 17:07 Tiwalun