FreeBSD-VSCode icon indicating copy to clipboard operation
FreeBSD-VSCode copied to clipboard

C/C++ workflow / Debugging

Open kusius opened this issue 5 years ago • 2 comments

Hello! First of all, huge thanks for this effort youre doing here.

Ive been trying to use code as a debugger for C/C++ executables by installing the extension. I wanted to ask if, first of all this extension is supposed to even work in our case, or do i need to build the extension specifically for freebsd.

I can provide you with the launch.json if you want, but basically what i get is a convertToDto unexpected type error. The type ive set in the launch.json is cppdbg

kusius avatar Dec 21 '19 12:12 kusius

I don't use the C/C++ extension. So this may be wrong.

The extension appears to depend on some platform-specific binaries (Microsoft.VSCode.CPP.Extension.linux and Microsoft.VSCode.CPP.IntelliSense.Msvc.linux), which are not open source.

Notes (though it is outdated) at the following URL describe how you can use the extension with FreeBSD's linux binary compatibility functions: https://github.com/prash-wghats/Electron-VSCode-Atom-For-FreeBSD/blob/master/vscode/Readme.md#vscode-1172

tagattie avatar Dec 23 '19 06:12 tagattie

At least, you need to download and install an "offline vsix" from github releases page instead of installing from the marketplace. The offline vsix includes those platform-specific binaries.

https://github.com/microsoft/vscode-cpptools/releases

tagattie avatar Dec 23 '19 06:12 tagattie