-
-
Notifications
You must be signed in to change notification settings - Fork 43
Automagically starts the debugger if the kernel supports it #126
Conversation
7d93e66
to
4ec426e
Compare
This is ready for review and merge. There is a workaround due to breakpoints being updated upon each cell change. THis can lead to send a debug request to a kernel that is not ready yet. A betteer fix would be to keep the list of all the breakpoints of a Notebook, and let the restoreSession update them when we switch to another notebook. |
src/breakpoints/index.ts
Outdated
@@ -92,11 +92,13 @@ export namespace Breakpoints { | |||
} | |||
|
|||
set breakpoints(breakpoints: IBreakpoint[]) { | |||
console.log('setbreakpoints called'); |
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.
Left over console.logs?
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.
oups ;)
4ec426e
to
e573acc
Compare
Pretty neat. Found this while trying it out locally: But it's probably something that falls under #76. |
Yes and it should be solved if we implement #130 (meaning we wouldn't have to check if the kernel is ready at all) |
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.
Nice, thanks 👍
It's indeed simpler to have the debugger always around and started automatically.
The other changes in the diff are related to the linting (#116 and more will come). |
Fixes #117 and #110.
This removes the start and stop commands form the palette and implements the following behavior: