dart-sdk/pkg/dtd_impl
Danny Tuppeny d209ea9333 [dtd] Allow passing an explicit port to DTD
Removes the port from `startService()` (which as far as I can see is unused) and parses it from `args` instead.

I had to add support for "options" in the argument classes and switched from a bool flag `isFlag` to an enum to be a bit more descriptive (and be easier to support multi-options in future if required).

Fixes https://github.com/dart-lang/sdk/issues/56000

Change-Id: Ib08513139f58e8845a7c2cbbeeea06787dbc2df1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371840
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Dan Chevalier <danchevalier@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
2024-06-17 14:58:19 +00:00
..
bin Turn off default logging for dtd daemon 2024-03-19 17:03:20 +00:00
lib [dtd] Allow passing an explicit port to DTD 2024-06-17 14:58:19 +00:00
test [dtd] Allow passing an explicit port to DTD 2024-06-17 14:58:19 +00:00
.gitignore
analysis_options.yaml Connecting DTD and DTD_impl together. 2023-12-19 15:36:22 +00:00
CHANGELOG.md
dtd_protocol.md Ensure that dtd handles relative paths correctly. 2024-04-15 14:29:03 +00:00
LICENSE
OWNERS
pubspec.yaml Add UnifiedAnalytics service to the Dart Tooling Daemon. 2024-04-04 00:20:32 +00:00
README.md Solidify dtd lifecycle 2024-02-13 16:17:18 +00:00

Dart Tooling Daemon

The server implementation for the Dart Tooling Daemon. This is meant to be run by our internal tooling and facilitates communication between our internal tools.

For details on the protocol used to communicate with the Dart Tooling Daemon see The DTD Protocol

Running the Dart Tooling Daemon

Compiled version

To run the tooling daemon compiled with the Dart SDK:

  1. Build the Dart SDK
  • make sure to build with create_platform_sdk
  • e.g. ./tools/build.py create_platform_sdk
  1. run dart tooling-daemon

    :info The dart binary should be the one you just built in step 1.

Testing changes

To quickly test changes to the tooling daemon, start it by running:

dart run bin/dtd.dart