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

Report when exceptions are hit to CDT #24

Open
wants to merge 2 commits into
base: jerry-debugger-proxy
Choose a base branch
from

Conversation

grgustaf
Copy link
Collaborator

@grgustaf grgustaf commented Apr 6, 2018

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
@@ -186,7 +186,7 @@ export class ChromeDevToolsProxyServer {
* Sends Debugger.paused event for the current debugger location
*/
sendPaused(breakpoint: Breakpoint | undefined, backtrace: Array<Breakpoint>,
reason: 'exception' | 'debugCommand' | 'other') {
reason: 'exception' | 'debugCommand' | 'other', exception?: string) {
Copy link
Owner

Choose a reason for hiding this comment

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

I know it was here already but it's started to draw attention to itself now :)
Maybe create a type for the reason close to the place where the sendPaused delegate contract is declared to avoid this long local type here?

type PausedReason = 'exception' | 'debugCommand' | 'other';

and then here:

reason: PausedReason

Copy link
Collaborator Author

@grgustaf grgustaf Apr 10, 2018

Choose a reason for hiding this comment

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

This isn't really a delegate call but an API... the controller calls this. I'm assuming it's still a good idea.

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
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.

2 participants