-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8f3845b
Breakpoints work
alan-knight dc5f6ed
one more comment
alan-knight fff7eef
revert analysis options
alan-knight 4116201
WIP - lots of things related to breakpoints and sourcemaps
alan-knight 7f6a70d
mid-edit
alan-knight 3b7b9a7
Emergency state save
alan-knight e24ff48
Debugging tests
alan-knight 48b046d
still wiping
alan-knight 9c397ba
Remove PR 376 code
alan-knight 203027a
Restructuring to start supporting breakpoints and sourcemaps
alan-knight e072bdb
Format test file
alan-knight 9c99ab5
Don't reload - causes other failures
alan-knight d973788
Delete reload to satisfy linter
alan-knight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart'; | ||
import 'package:vm_service_lib/vm_service_lib.dart'; | ||
|
||
import 'chrome_proxy_service.dart'; | ||
|
||
class Debugger { | ||
Debugger(this.mainProxy); | ||
|
||
ChromeProxyService mainProxy; | ||
|
||
WipDebugger get chromeDebugger => mainProxy.tabConnection.debugger; | ||
|
||
Future<Null> initialize() async { | ||
await chromeDebugger.enable(); | ||
} | ||
|
||
Future<Breakpoint> addBreakpoint(String isolateId, String scriptId, int line, | ||
{int column}) async { | ||
throw UnimplementedError(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 asrc
import)