Skip to content

"Dart: Dev Tools Browser" should be clearly documented as only working for local workspaces #5431

@mkorbel1

Description

@mkorbel1

Describe the bug
Split off from flutter/devtools#8912 (see flutter/devtools#8912 (comment))

If you open devtools in the browser while debugging in Dart in VS Code in WSL, the "Dart: Dev Tools Browser" setting does not seem to take effect. Whether it is set to "chrome" or "default", it always opens in "default", which is Edge on my system. Note that this only is an issue for me in WSL, and the setting works appropriately in Windows natively.

To Reproduce

  1. Set default browser on your system to Edge (or something else non-Chrome)
  2. Open VS Code in WSL2 Ubuntu
  3. Set the "Dart: Dev Tools Browser" setting to "chrome"
  4. debug a Dart program
  5. At a breakpoint, open devtools in browser
  6. Observe that it opens in non-Chrome instead of Chrome

Expected behavior
Setting works, opens in chrome if specified as such.

Screenshots

Image

Please complete the following information:

Workspace Environment
Dart Code extension: 3.106.0

App: Visual Studio Code
App Host: desktop
Remote: wsl
Host Kind: wsl
Version: linux 1.97.2

Workspace type: Dart (LSP)
Workspace name: rohd-hcl [WSL: Ubuntu]

Dart (3.7.0): /usr/lib/dart
Flutter (undefined): undefined (No device)
Output from 'dart info'

/usr/lib/dart/bin/dart info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

Project info

  • sdk constraint: '>=3.0.0 <4.0.0'
  • dependencies: collection, meta, rohd, rohd_vf
  • dev_dependencies: logging, test

Process info

Memory CPU Elapsed time Command line
84 MB 0.3% 06:16 dart devtools --machine --allow-embedding --dtd-uri ws:/qYCG49aSQsE=
382 MB 0.0% 03:49:38 dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.104.0
431 MB 0.3% 02:14:39 dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0
362 MB 0.2% 01:37:33 dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0
332 MB 3.6% 07:00 dart language-server --protocol=lsp --client-id=VS-Code-Remote --client-version=3.106.0
78 MB 0.0% 03:49:38 dart tooling-daemon --machine
79 MB 0.0% 01:37:33 dart tooling-daemon --machine
108 MB 0.5% 07:00 dart tooling-daemon --machine

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions