-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Use console for debugger evaluation #17892
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
Conversation
|
Thanks for making a pull request to jupyterlab! |
d2ecb81 to
498f3ce
Compare
498f3ce to
5a4d35a
Compare
|
^ picked merge conflicts from a new alpha release |
5a4d35a to
3a1db49
Compare
7dd4791 to
54762c9
Compare
martinRenou
left a comment
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.
That looks good to me! Thanks a lot for this :D
Can you open an issue/pre-JEP (whatever is needed) so that we do not lose track of this discussion? |
|
Will do! |
krassowski
left a comment
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.
This is nearly there, some minor suggestions on command names and translation wrappers
packages/debugger/src/debugger.ts
Outdated
| export const invokeConsole = 'debugger:invoke-console'; | ||
|
|
||
| export const selectConsole = 'debugger:select-console'; | ||
|
|
||
| export const executeConsole = 'debugger:execute-console'; |
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.
I would suggest making the names of the commands easier to understand as this is user-facing:
| export const invokeConsole = 'debugger:invoke-console'; | |
| export const selectConsole = 'debugger:select-console'; | |
| export const executeConsole = 'debugger:execute-console'; | |
| export const invokeConsole = 'debugger:invoke-console-completer'; | |
| export const selectConsole = 'debugger:select-console-completion'; | |
| export const executeConsole = 'debugger:run-in-console'; |
I see that normal console has console:run-forced and console:run-unforced do we need this distinction here too?
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.
This console won't execute unforced since that results in a kernel request.
krassowski
left a comment
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.
This replaces the current debugger evaluate dialog with a console.
debugconsole.mp4
References
Closes #17849
Code changes
User-facing changes
Enables a console interface for interacting with the debugger.
Backwards-incompatible changes