-
Notifications
You must be signed in to change notification settings - Fork 297
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
get_ipython in vscode debugger giving error #3209
Comments
Thanks for reporting this issue. |
Hi Don, thanks for responding. I am debugging from the debugger toolbar. Here's my launch.json, which has nothing unusual.
|
Hi Don, I uploaded the code here |
Unfortunately |
I don't believe this is a bug. It's behaving as designed. You have to debug a cell instead of debugging a file if you have line/cell magics. Our insider's build has support for debugging cells. See Rong's video here: |
This is awesome! Thank you Rich and Don. |
Hi @rchiodo <https://github.com/rchiodo>, I wasn't able to step into a
pytorch library. Is that the normal behavior? (i do like stepping into
library code to figure out what is going on, and was excited at the thought
of doing it in a notebook, but if it is not possible, I understand.)
…On Mon, Aug 5, 2019 at 10:52 AM Rich Chiodo ***@***.***> wrote:
I don't believe this is a bug. It's behaving as designed. You have to
debug a cell instead of debugging a file if you have line/cell magics.
Our insider's build
<https://pvsc.blob.core.windows.net/extension-builds/ms-python-insiders.vsix>
has support for debugging cells. See Rong's video here:
https://twitter.com/davorabbit/status/1149062343231455238?lang=en
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/microsoft/vscode-python/issues/6765?email_source=notifications&email_token=AAM3RRFE5233O6KPIHWURRLQDBSHNA5CNFSM4IH5OBQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3SSKYQ#issuecomment-518333794>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM3RRBB62DTA2D23JSE7ILQDBSHNANCNFSM4IH5OBQA>
.
--
Regards,
Matt
|
I believe this is because we have it set to Just My Code. We could probably make that a user option. Feel free to enter a feature request. |
If we set that based on a user option, I believe you'd be able to step into anything that was source based. |
thanks @rchiodo! one more question, I hope you don't mind ... do you have any idea for how debugging notebooks would work on a remote server? should it work the same as a local notebook, (assuming all the remote vscode python debugging stuff is set up?) |
When you say remote, do you mean using VS Code's remote SSH connections? That should work exactly the same. |
awesome. i'm taking the fast.ai course for ML and he recommended vscode as
the tool to use locally. i'm glad he did!
…On Tue, Aug 6, 2019 at 12:35 PM Rich Chiodo ***@***.***> wrote:
When you say remote, do you mean using VS Code's remote SSH connections?
That should work exactly the same.
If you're referring to our Remote Jupyter Server URI, that's currently
disabled as we're waiting on a security change from the debugger. Once that
security fix is in place, that should also work exactly like normal
debugging.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://github.com/microsoft/vscode-python/issues/6765?email_source=notifications&email_token=AAM3RRGOORWCCB3VD5J6R6TQDHG6RA5CNFSM4IH5OBQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3WHFTY#issuecomment-518812367>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAM3RRBAF3NJ5RMFTPKON43QDHG6RANCNFSM4IH5OBQA>
.
--
Regards,
Matt
|
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version vscode-python#3977): XXXExpected behaviour
should be able to run debugger on
run_line_magic
functionsActual behaviour
running the following in the debugger gives an error. non-get_ipython() lines seem fine.
based on converted notebook from fast.ai lesson 0
https://gist.github.com/decormatters/20f063e22f237bcb532566e4d3b1a1b2
Steps to reproduce:
The text was updated successfully, but these errors were encountered: