-
Notifications
You must be signed in to change notification settings - Fork 340
Closed
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis enhancement
Milestone
Description
Describe the bug
A clear and concise description of what the bug is.
I am developing a VSCode extension that will auto-attach a Dart debug session. The program that I am trying to run will always be a Dart application.
If the workspace contains a root pubspec.yaml file that references Flutter, the debuggerType is forced to DebuggerType.Flutter.
Expected behavior
A clear and concise description of what you expected to happen.
If I supply
const attached = await vscode.debug.startDebugging(workspace, {
name: debugSessionName,
request: "attach",
type: "dart",
vmServiceUri: debugUrl,
debuggerType: 0 // DebuggerType.Dart
});I expect the debuggerType to remain as DebuggerType.Dart
Workspace Environment
Dart Code extension: 3.113.20250602
Flutter extension: 3.113.20250603 (activated)
App: Cursor
App Host: desktop
Version: mac 1.96.2
Workspace type: Dart (LSP)
Workspace name: project
Dart (3.7.3): /Users/morgan/.dvm/darts/3.7.3
Flutter (3.29.3): /Users/morgan/fvm/versions/3.29.3 (No device)
Output from 'dart info'
/Users/morgan/.dvm/darts/3.7.3/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
- Dart 3.7.3 (stable) (Wed Apr 16 14:06:32 2025 -0700) on "macos_arm64"
- on macos / Version 15.5 (Build 24F74)
- locale is en-US
Project info
- sdk constraint: '>=3.0.0 <4.0.0'
- dependencies: hooksman
- dev_dependencies:
Process info
| Memory | CPU | Elapsed time | Command line |
|---|---|---|---|
| 634 MB | 0.0% | 03:29:34 | dart --enable-vm-service=0 --enable-asserts -DDB_HOST=127.0.0.1 -DDB_PORT=8090 -DDB_SCHEME=http -DANALYTICS_APP_ID=YpNvjz89tsfz7XbH -DSERVER_HOST=localhost -DSERVER_PORT=1122 -DWEBHOOK_USER_EMAIL=webhook@email.dev -D__DEBUG__=true -D__PROFILE__=false -D__RELEASE__=false /server.dart |
| 108 MB | 0.0% | 20:03 | dart development-service --vm-service-uri=http:/ --bind-address=localhost --bind-port=0 --serve-devtools |
| 104 MB | 0.0% | 03:29:33 | dart development-service --vm-service-uri=http:/ --bind-address=localhost --bind-port=0 --serve-devtools |
| 84 MB | 0.0% | 03:30:29 | dart devtools --machine --allow-embedding --dtd-uri ws:/L0-nChElwJ0= |
| 10 MB | 0.0% | 01-17:52:57 | dart devtools --machine --allow-embedding --dtd-uri ws:/ctm3lfa_BKA= --port 9101 |
| 7 MB | 0.0% | 06-11:05:47 | dart devtools --machine --allow-embedding --dtd-uri ws:/p2sGionMleQ= |
| 1571 MB | 0.0% | 03:30:30 | dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.113.20250602 |
| 1698 MB | 0.0% | 03:30:29 | dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.113.20250602 |
| 1693 MB | 0.0% | 20:03 | dart run --enable-vm-service=0 --enable-asserts .revali/analyzer_debug_DDR7e9EnxxwI.dart --port 55476 |
| 52 MB | 0.0% | 01-00:01:56 | dart run bin/initializer.dart --local |
| 694 MB | 0.0% | 03:29:45 | dart run revali dev --dart-define-from-file=/backend.local.env |
| 12 MB | 0.0% | 06-11:05:47 | dart tooling-daemon --machine |
| 11 MB | 0.0% | 01-17:52:57 | dart tooling-daemon --machine |
| 82 MB | 0.0% | 03:30:30 | dart tooling-daemon --machine |
| 82 MB | 0.0% | 03:30:29 | dart tooling-daemon --machine |
| 118 MB | 0.4% | 03:30:29 | flutter_tools.snapshot daemon |
| 105 MB | 0.0% | 03:29:45 | sip.dart-3.7.3.snapshot r server be |
| 98 MB | 0.0% | 03:29:33 | sip.dart-3.7.3.snapshot r server pb --dev |
Metadata
Metadata
Assignees
Labels
in debuggingRelates to the debug adapter or process of running debug sessionsRelates to the debug adapter or process of running debug sessionsis enhancement