Closed sakthivel-axim closed 2 years ago
I think the CPP debugger is in the MSFT extension which we can't use in code-server (based off this) so I don't think there's anything we can do here sadly.
cc @code-asher are there any workarounds that you know of?
Thanks, @jsjoeio. Understand that cannot use cppdbg
. Please let me know the possibilities to use gdb
for debugging in Debian environment.
Understand that cannot use cppdbg. Please let me know the possibilities to use gdb for debugging in Debian environment
None that I know of but maybe @code-asher knows
The only open-source version of the Microsoft C++ extension I know of is https://open-vsx.org/extension/llvm-vs-code-extensions/vscode-clangd but I have never used it so I am not sure how/if debugging works.
I can have cpp debugging working on code-server running on my Raspberry pi (Ubuntu 22.04 , arm64) , I installed https://github.com/Microsoft/vscode-cpptools (there are armhf
builds), you may try it . (It can work even without https)
Thanks you @a279437145 .
I have tried to install but it doesn't show in extension. Could you please share config/steps to bring up? It will be helpful.
yep , it's not in the openVSX extension gallery , so you cant install it directly.
I downloaded the vsix from https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
and chose the Download extension
option in the right , then choose the right one for you
you are on armhf ubuntu , so you should choose Linux arm32
, like this:
then put it on your code-server and install, the way to install exis extensions are described in the code-server docs
Also if you want i can provide my tasks.json
andlaunch.json
Thanks @a279437145 . I will try to setup. Please share your tasks.json
and launch.json
, it helps a lot. Thanks once again.
the files are here
launch.txt
tasks.txt
change the attribute to .json(I can't upload json files to github directly),and please ignore the python configuration in launch.json
it should work like this
I cant use computer now so I did that on phone , the screenshot may somehow look a bit strange,regret~
It's working. Thank you @a279437145.
Great , you are welcome.
Message ID: @.***>
yep , it's not in the openVSX extension gallery , so you cant install it directly. I downloaded the vsix from https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools and chose the
Download extension
option in the right , then choose the right one for you you are on armhf ubuntu , so you should chooseLinux arm32
, like this:then put it on your code-server and install, the way to install exis extensions are described in the code-server docs
Also if you want i can provide my
tasks.json
andlaunch.json
Debugging is working with help of this.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.8.1Steps to Reproduce
dpkg -i <package.deb>
cppdbg
Expected
Able to debug
Actual
Throws error
Configured debug type 'cppdbg' is not supported.
Logs
No response
Screenshot/Video
Does this issue happen in VS Code or GitHub Codespaces?
Are you accessing code-server over HTTPS?
Notes
Installed the .deb package in BeagleBone board. Running over HTTP.