Skip to content

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

@peku33

Description

@peku33

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions