-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Python debugging doesn't work in ColabCode (via ngrok and Google Colab) #2783
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
Comments
HI @krivenkoz ! Can you please fill out the issue template? And can you provide reproduction steps? I'm not super familiar with ColabCode. And lastly, have you tried debugging a Python script when not using ColabCode? Wondering if there may be an underlying issue. |
@jsjoeio, I'm seeing the same thing with just code-server 3.9.1 and the latest ms-python extension installed.
and creating launch.json as
Press F5 in test.py and it fails with the above error message. Worse, I don't see any log output anywhere explaining the issue. Please help. |
Hey @ddurham2 - thanks for letting us know! Just to clarify, I should be able to reproduce following these steps?
ExpectedI don't use Python much these days and also haven't tried debugging it in VS Code/code-server so I'm not sure what should happen? Actual
Possibly related to: |
Yes, precisely. And I think #2341 is what I should focus on, and possibly this issue's fundamental cause too. I have learned since that if you look in the browser dev console that this behavior is caused by the ms-toolsai.jupyter failing to load. That seems to be because it's missing some files in the extension ( /home/coder/.local/share/code-server/extensions/ms-toolsai.jupyter-2021.2.0/out/client/* ) I think #2341 already has discovered this. Also, I've found that [email protected] is the version just before they started requiring the ms-toolsai.jupyter extension. I'm currently having to stick with code-server v3.7.1 (due to #2626 ) and specify this version of the ms-python plugin. |
Awesome! Thanks for the additional info. I've added this to the next milestone so hopefully we can figure this out! |
@krivenkoz The latest python extension is now working in 3.9.1. You might check if your issue is resolved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
I'm using amazing ColabCode by Abhishek Thakur. It uses ngrok as backbone and Google Colab as "frontend". But when I try to debug Python script, it doesn't launch any debug action. launch.json is empty. When I fill it with next:
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
I've got next error:
Couldn't find a debug adapter descriptor for debug type 'python' (extension might have failed to activate). Python extension installed properly. Script runs in terminal only (not by F5 button).
How can I debug Python script on ngrok code-server?
The text was updated successfully, but these errors were encountered: