-
Notifications
You must be signed in to change notification settings - Fork 138
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
Conversation
@Eskibear, |
@@ -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; |
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.
knownEvent
recognized = false; | ||
} | ||
|
||
if (recognized) { |
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.
Comment on why record only recognized event
currentSession.eventList.add(JsonUtils.toJson(eventEntry)); | ||
} | ||
} catch (Exception e) { | ||
// ignore it |
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.
Don't skip this error to ai
if
Exception
orabnormal response
occurs, it appendsjdiEventSequence
information on session usage data summary.