You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for attachRequest in DAP, running "flutter attach" (#97652)
* Add support for attachRequest in DAP, which runs "flutter attach"
* Update DAP docs for attachRequest
* Improve doc comments
* Fix comments
* Remove noDebug from attach + create a getter for `debug`
* Fix indent
Copy file name to clipboardExpand all lines: packages/flutter_tools/lib/src/debug_adapters/README.md
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,18 +27,20 @@ Arguments common to both `launchRequest` and `attachRequest` are:
27
27
-`bool? evaluateToStringInDebugViews` - whether to invoke `toString()` in expression evaluation requests (inc. hovers/watch windows) (if not supplied, defaults to `false`)
28
28
-`bool? sendLogsToClient` - used to proxy all VM Service traffic back to the client in custom `dart.log` events (has performance implications, intended for troubleshooting) (if not supplied, defaults to `false`)
29
29
-`List<String>? additionalProjectPaths` - paths of any projects (outside of `cwd`) that are open in the users workspace
30
-
-`String? cwd` - the working directory for the Dart process to be spawned in
30
+
-`String? cwd` - the working directory for the Flutter process to be spawned in
31
+
-`List<String>? toolArgs` - arguments for the `flutter run`, `flutter attach` or `flutter test` commands
32
+
-`String? customTool` - an optional tool to run instead of `flutter` - the custom tool must be completely compatible with the tool/command it is replacing
33
+
-`int? customToolReplacesArgs` - the number of arguments to delete from the beginning of the argument list when invoking `customTool` - e.g. setting `customTool` to `flutter_test_wrapper` and `customToolReplacesArgs` to `1` for a test run would invoke `flutter_test_wrapper foo_test.dart` instead of `flutter test foo_test.dart` (if larger than the number of computed arguments all arguments will be removed, if not supplied will default to `0`)
31
34
32
35
Arguments specific to `launchRequest` are:
33
36
34
37
-`bool? noDebug` - whether to run in debug or noDebug mode (if not supplied, defaults to debug)
35
38
-`String program` - the path of the Flutter application to run
36
39
-`List<String>? args` - arguments to be passed to the Flutter program
37
-
-`List<String>? toolArgs` - arguments for the `flutter run` or `flutter test` commands
38
-
-`String? customTool` - an optional tool to run instead of `flutter` - the custom tool must be completely compatible with the tool/command it is replacing
39
-
-`int? customToolReplacesArgs` - the number of arguments to delete from the beginning of the argument list when invoking `customTool` - e.g. setting `customTool` to `flutter_test_wrapper` and `customToolReplacesArgs` to `1` for a test run would invoke `flutter_test_wrapper foo_test.dart` instead of `flutter test foo_test.dart` (if larger than the number of computed arguments all arguments will be removed, if not supplied will default to `0`)
40
40
41
-
`attachRequest` is not currently supported, but will be documented here when it is.
41
+
Arguments specific to `attachRequest` are:
42
+
43
+
-`String? vmServiceUri` - the VM Service URI to attach to (if not supplied, Flutter will try to discover it from the device)
0 commit comments