Skip to content
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

add jdi events into usage data when exception occurs #65

Merged
merged 2 commits into from
Oct 9, 2017
Merged

add jdi events into usage data when exception occurs #65

merged 2 commits into from
Oct 9, 2017

Conversation

Eskibear
Copy link
Member

if Exception or abnormal response occurs, it appends jdiEventSequence information on session usage data summary.

image

@Eskibear Eskibear requested a review from andxu September 30, 2017 06:12
@msftclas
Copy link

@Eskibear,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@@ -60,6 +61,7 @@ public void handle(Command command, Arguments arguments, Response response, IDeb

private void handleDebugEvent(DebugEvent debugEvent, IDebugSession debugSession, IDebugAdapterContext context) {
Event event = debugEvent.event;
boolean recognized = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

knownEvent

recognized = false;
}

if (recognized) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment on why record only recognized event

currentSession.eventList.add(JsonUtils.toJson(eventEntry));
}
} catch (Exception e) {
// ignore it
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't skip this error to ai

andxu
andxu previously approved these changes Sep 30, 2017
@Eskibear Eskibear merged commit 8e607b4 into microsoft:master Oct 9, 2017
@Eskibear Eskibear deleted the log branch October 9, 2017 07:53
@Eskibear Eskibear mentioned this pull request Oct 9, 2017
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.

None yet

3 participants