8000 Support Data Breakpoint by testforstephen · Pull Request #307 · microsoft/java-debug · GitHub
[go: up one dir, main page]

Skip to content

Support Data Breakpoint#307

Merged
testforstephen merged 5 commits intomasterfrom
jinbo_databreakpoint
Nov 15, 2019
Merged

Support Data Breakpoint#307
testforstephen merged 5 commits intomasterfrom
jinbo_databreakpoint

Conversation

@testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Close microsoft/vscode-java-debug#654

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>

requests.addAll(watchpointRequests);
if (!watchpointRequests.isEmpty() && !future.isDone()) {
this.putProperty("verified", true);
Copy link
Contributor

Choose a reason for hiding this comment

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

this.putProperty("verified", true); twice ? see line 159

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By design. It's guarded by the condition check !future.isDone()

Copy link
Contributor

Choose a reason for hiding this comment

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

List watchpointRequests = createWatchpointRequests(event.referenceType());
requests.addAll(watchpointRequests);
if (!watchpointRequests.isEmpty() && !future.isDone()) {
this.putProperty("verified", true);
future.complete(this);
}
duplicate


@Override
public String getLogMessage() {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

throw UnsupportedException rather than null/do nothing logic

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
andxu
andxu previously approved these changes Nov 15, 2019
Copy link
Contributor
@andxu andxu left a comment

Choose a reason for hiding this comment

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

Please write unit tests for new code.

@testforstephen testforstephen merged commit 27e3c45 into master Nov 15, 2019
@testforstephen testforstephen deleted the jinbo_databreakpoint branch November 15, 2019 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Data Breakpoint for Java Debugger

2 participants

0