Skip to content

Don't repeat to report compile errors for logpoints and conditional bp - #224

Merged
Andy Xu(devdiv) (andxu) merged 4 commits into
masterfrom
andy_log2
Sep 10, 2018
Merged

Andy Xu(devdiv) (andxu) merged 4 commits into
masterfrom
andy_log2

Conversation

@andxu

Copy link
Copy Markdown
Contributor

No description provided.

@yaohaizh Yaohai Zheng (yaohaizh) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Naming

if (!firstTime && breakpoint != null) {
if (StringUtils.isNotBlank(breakpoint.getLogMessage())) {
// for logpoint with compilation errors, don't send errors if it is already reported
completableFuture.complete(debugTarget.getVM().mirrorOf(""));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IValue emptyStringValue = debugTarget.getVM().mirrorOf("");
completableFuture.complete(emptyStringValue);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed

completableFuture.complete(debugTarget.getVM().mirrorOf(""));
} else {
// for conditional bp, report true to let breakpoint hit
completableFuture.complete(debugTarget.getVM().mirrorOf(true));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

IValue booleanValue = debugTarget.getVM().mirrorOf(true);
completableFuture.complete(booleanValue);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed

@andxu
Andy Xu(devdiv) (andxu) merged commit 69b7c49 into master Sep 10, 2018
@andxu
Andy Xu(devdiv) (andxu) deleted the andy_log2 branch September 10, 2018 04:50
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.

3 participants