Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the VM service getFlagList API #2438

Merged
merged 6 commits into from
May 29, 2024
Merged

Conversation

elliette
Copy link
Contributor

@elliette elliette commented May 28, 2024

@elliette elliette requested a review from helin24 May 28, 2024 19:57
bool _pauseIsolatesOnStart = false;
/// The flags that can be set at runtime via [setFlag].
final Map<String, bool> _supportedVmServiceFlags = {
_pauseIsolatesOnStartFlag: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is pause-on-exit not supported?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pause-on-exit is not supported - because the web doesn't have "real" isolates we mimic the pause-on-start behavior by waiting to run the app's main method until we get a resume event. However, I can't think of a way we could mimic pause-on-exit.

@@ -92,12 +92,16 @@ class ChromeProxyService implements VmServiceInterface {

StreamSubscription<ConsoleAPIEvent>? _consoleSubscription;

bool _pauseIsolatesOnStart = false;
/// The flags that can be set at runtime via [setFlag].
final Map<String, bool> _supportedVmServiceFlags = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the name of this map a bit misleading now? It sounds like a set of supported flags, but based on the comment and code below, it appears to be holding the actual flag values now too. (_currentVmServiceFlags or something?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, changed to _currentVmServiceFlags!

@elliette elliette merged commit a97c2a1 into dart-lang:master May 29, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DAP] --pause-isolates-on-start and --pause-isolates-on-exit flags are not set for attach workflows
3 participants