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

Check debugging is enabled before restoring the session #275

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Dec 11, 2019

Fixes #268.

Check whether a kernel support debugging before restoring the session and sending the debugInfo message.

@jtpio jtpio changed the title Check debugging is enabled before restoring the session [WIP] Check debugging is enabled before restoring the session Dec 11, 2019
@jtpio
Copy link
Member Author

jtpio commented Dec 11, 2019

This does not support changing kernels for existing notebook, which should be handled in #76.

@jtpio jtpio added this to the 0.1.0 milestone Dec 11, 2019
this._client.iopubMessage.connect(this._handleEvent, this);

if (this.client instanceof ClientSession) {
this._ready = this.client.ready.then(_ => this.client.kernel.ready);
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 is required to be able to retrieve the kernel info.

@jtpio jtpio force-pushed the debugging-enabled branch from 122d2d1 to 870620c Compare December 12, 2019 08:29
@jtpio jtpio changed the title [WIP] Check debugging is enabled before restoring the session Check debugging is enabled before restoring the session Dec 12, 2019
@jtpio
Copy link
Member Author

jtpio commented Dec 12, 2019

This approach will probably slightly change when we'll have to also handle kernel changes:

image

@jtpio jtpio mentioned this pull request Dec 12, 2019
@jtpio jtpio force-pushed the debugging-enabled branch from 870620c to 97e7c61 Compare December 12, 2019 19:48
@jtpio
Copy link
Member Author

jtpio commented Dec 12, 2019

cc @afshin

Let me know what you think. Then we can see how we can make everything fit together with #239 (or after it lands).

As mentioned before, the main challenge here is the need to wait for the kernel to be ready before accessing the kernel info (and check for debugging support).

Copy link
Member

@afshin afshin left a comment

Choose a reason for hiding this comment

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

👍

@afshin afshin merged commit 1b90965 into jupyterlab:master Dec 13, 2019
@jtpio jtpio deleted the debugging-enabled branch December 13, 2019 13:34
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.

Canceled promise error for kernels without support for debugging
2 participants