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
PR: Use '!' for Pdb commands and add other options to control the debugger (IPython console) #12134
Conversation
This comment has been minimized.
This comment has been minimized.
e655890
to
6dafbdb
Compare
26b8329
to
238eaff
Compare
046437b
to
df406e9
Compare
I switched commands and text because I am tired to have a variable named so:
|
74ddde9
to
7bc6561
Compare
47a6e56
to
21c44e4
Compare
a1d4834
to
b2c395f
Compare
98ca6da
to
d11c97f
Compare
0bd7791
to
3698b89
Compare
I removed the explore mode and replaced by spyder-ide/spyder-kernels@82617ad This means typing "u" in the terminal will go up unless u is defined. So the code takes precedence on the commands rather than the other way around. This way pdb can be used in essentially the current way, but the conflicts resolve in favor of the code rather than the commands, which is more intuitive. |
…com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "82617ad15" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "separate_cmd_input" commit: "82617ad15" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
Great! That's a very nice and intuitive solution solution! Thanks @impact27 for implementing it. |
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.
Apart from the minor comment I left and fixing the merge conflict with our subrepo, I think this one is ready.
…/github.com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "97909c82f" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "separate_cmd_input" commit: "97909c82f" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
Should this behaviour be the default? I think it makes sense as new users will be less surprised but could be a bit surprising for users that are used to pdb. |
/show binder |
Yes, I totally agree.
Agreed too. And what do you think if we give seasoned Pdb users a hint about what's happening, by showing a message like this? |
…com/impact27/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "427046552" upstream: origin: "https://github.com/impact27/spyder-kernels.git" branch: "separate_cmd_input" commit: "427046552" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
@impact27, I think this is good to go now. Please resync our subrepo because I just merged PR spyder-ide/spyder-kernels#214. |
…der-ide/spyder-kernels.git external-deps/spyder-kernels subrepo: subdir: "external-deps/spyder-kernels" merged: "5e430c34b" upstream: origin: "https://github.com/spyder-ide/spyder-kernels.git" branch: "1.x" commit: "5e430c34b" git-subrepo: version: "0.4.1" origin: "https://github.com/ingydotnet/git-subrepo" commit: "a04d8c2"
Please merge with 4.x to fix the merge conflict. |
I did it myself because I need it to base another PR on top of this one. Sorry for the hassle. |
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.
Thanks a lot @impact27 for this! Terrific addition!
Description of Changes
Use '!' before Pdb commands and nothing before python code, as is the case in IPython
Issue(s) Resolved
Depends on spyder-ide/spyder-kernels#214
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: