Giter Club home page Giter Club logo

Comments (4)

DanTup avatar DanTup commented on July 17, 2024 1

Ah, I see. The docs for getFlagList() say:

The getFlagList RPC returns a list of all command line flags in the VM along with their current values.

I don't know if it's reasonable for web to have all the CLI flags in there, but if web has behaviour for pause-on-start/exit then probably it should at least include those there (and with the correct values that were set).

from sdk.

DanTup avatar DanTup commented on July 17, 2024

@elliette I'm not sure I understand why this doesn't work. Wouldn't they be set during the loop?

We enumerate the flags (which comes from getFlagList() and includes all flags), then when we find pauseOnStart/pauseOnExit, the condition on line 857 is false (the name is not null and it is a pause-isolates flag) so we carry on. The condition on 859 is false (the flag is not already true), so we fall into 867 which calls _setVmflagTo (and the booleans like pauseIsolatesOnStartSetByDap defaulted to true so already match)?

(maybe it'll be clearer when I see your fix though :-) )

from sdk.

elliette avatar elliette commented on July 17, 2024

Hmm in g3 this call to getFlagList is returning an empty list:

final flags = (await vmService.getFlagList()).flags ?? <vm.Flag>[];

from sdk.

elliette avatar elliette commented on July 17, 2024

Hmm in g3 this call to getFlagList is returning an empty list:

final flags = (await vmService.getFlagList()).flags ?? <vm.Flag>[];

Ah hah: https://github.com/dart-lang/webdev/blob/15028c4fd1488376de701230bb57ac214549526b/dwds/lib/src/services/chrome_proxy_service.dart#L760-L764

So maybe the right fix is to implement this in DWDS

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.