-
Notifications
You must be signed in to change notification settings - Fork 133
How to set up debugging on Linux/Mac #2092
Comments
Step 6 means in the vscode-python repo; so just in the root next to You are copying the correct files; the contents of
|
Thanks for the quick response. Unfortunately, after making And I'm not sure how to attach with a second instance of VS Code instead of with Visual Studio; running
After hitting F5, there are several build targets: I tried I'm not sure what else needs to be in place. I'm running Node 12, and all the |
You want "Extension". Then when it's loaded, the output panel should have an output channel for "Python Language Server" which should provide some more info about if it's working or not. You can also technically use the stable build of the Python extension, and copy the languageServer folder to its directory (with the same downloadLanguageServer set to false), if you want to eliminate an extra debug step. There's an "open extensions folder" item in the command pallete to quickly find where it lives. |
This seems to work for me. Thanks! |
I generally use NixOS, a Linux distro, and am able to build the server, but I'm not sure how to get debugging working, especially since Visual Studio isn't supported there. I can browse the code within Emacs with
omnisharp-roslyn
, but do not know of any means of debugging C# within Emacs. And VS Code doesn't seem to work very well with C# on Nix.I've also tried using a Mac and following the instructions to set up debugging.
I don't see a
sources
folder. I have created thelanguageServer
folder inside ofvscode-python/src
.I've recursively copied
output/bin/Debug/foo
tovscode-python/src/languageServer/foo
, and notvscode-python/src/languageServer/Debug/foo
.These settings don't appear to exist. I've tried setting
python.languageServer
to"Microsoft"
in the VS Code settings, as well as"None"
.On Mac, I cannot see a
dotnet
process when trying to attach to a process.I'm guessing I've done something wrong in one or more of the above steps. I'd appreciate any help in getting set up.
The text was updated successfully, but these errors were encountered: