Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Handle kernel restarts #276

Closed
wants to merge 0 commits into from
Closed

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Dec 12, 2019

Fixes #76.

Restarting the kernel will also restart the debugger. For now the breakpoints are not saved and restored.

This needs to take into account the state of the toggle button from #239 later on.

kernel-restart

@jtpio jtpio force-pushed the kernel-status-changed branch 3 times, most recently from b90f0b8 to 59b4500 Compare December 12, 2019 15:37
@jtpio jtpio added this to the 0.1.0 milestone Dec 12, 2019
@jtpio jtpio force-pushed the kernel-status-changed branch from 59b4500 to 28d99df Compare December 12, 2019 17:06
src/index.ts Outdated
debug.session.client = client;
debug.session = new DebugSession();
}
debug.session.client = client;
Copy link
Member Author

Choose a reason for hiding this comment

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

This follows the same approach as when we set the session on the service.

It removes the possibility to provide a client to the constructor, so the client can only be set via the setter.

src/service.ts Outdated
return;
}
// TODO: listen to status changes only if the client / kernel
// has support for debugging
Copy link
Member Author

Choose a reason for hiding this comment

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

This could be done at the plugin level, re-using some of the logic from #239

@jtpio jtpio force-pushed the kernel-status-changed branch 3 times, most recently from d81c47a to e0b0d71 Compare December 13, 2019 15:27
@jtpio jtpio closed this Dec 18, 2019
@jtpio jtpio force-pushed the kernel-status-changed branch from e0b0d71 to 27c0061 Compare December 18, 2019 09:09
@jtpio jtpio deleted the kernel-status-changed branch December 18, 2019 09:13
@jtpio jtpio mentioned this pull request Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle kernel status
1 participant