-
Notifications
You must be signed in to change notification settings - Fork 79
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
Restructuring to start supporting breakpoints and sourcemaps #377
Conversation
alan-knight
commented
May 7, 2019
- Split out a separate Debugger class
- Made a couple of things public so they can be used from related libraries (like Debugger)
- Added some stub tests
@@ -133,12 +142,12 @@ class ChromeProxyService implements VmServiceInterface { | |||
_vm.isolates.add(isolateRef); | |||
_isolate = isolate; | |||
|
|||
_streamNotify( | |||
streamNotify( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why this was changed to public. Likewise with scriptRefs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because Debugger needs to call them and it's in a separate library. We could instead make all the sub-components part files, but I'm not sure that's generally considered a good technique.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could move them to an internal library that could be used from both places, but that might require a bit more re-arrangement, e.g. moving _streamControllers to the other library as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Debugger isn't using them just yet but will in the near future. Keeping them public is probably preferable to a bunch of part files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw this is also why we only expose the VmServiceInterface
now publicly instead of this class, so these don't leak outside the package (not without a src
import)
@@ -133,12 +142,12 @@ class ChromeProxyService implements VmServiceInterface { | |||
_vm.isolates.add(isolateRef); | |||
_isolate = isolate; | |||
|
|||
_streamNotify( | |||
streamNotify( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Debugger isn't using them just yet but will in the near future. Keeping them public is probably preferable to a bunch of part files.