vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

"C_Cpp.AddDebugConfiguration not found" in a remote macOS -> Windows session

Open wrobelda opened this issue 2 years ago • 3 comments

Environment

  • OS and version: macOS 12.4
  • VS Code: 1.69.1
  • C/C++ extension: 1.2.0
  • OS and version of remote machine (if applicable): Windows 10.0.19044.1766
  • GDB / LLDB version: n/a

Bug Summary and Steps to Reproduce

Bug Summary: I am trying to set up a debugger (add additional command line arguments to run the executable with). Compilation and running actually work fine, using the VS2019's debugger.

However, any "C/C++" extension's command from command palette ends up with the "C_Cpp.AddDebugConfiguration not found" error, in particular the "C/C++: Edit Configurations (JSON)" and "C/C++: Edit Configurations (UI)".

I tried reinstalling the extension on the remote node, to no avail. I checked the FAQ/docs and run out of the idea.

Other Extensions

No response

Additional Information

No response

wrobelda avatar Jul 15 '22 15:07 wrobelda

Hi @wrobelda . Could you try enabling the setting "C_Cpp.loggingLevel": "Debug" and checking if there is anything logged to the C/C++ output channel related to this issue?

When none of the C/C++ extension commands work from the command palette, that usually indicates VS Code failed to install the extension properly for some reason, causing it to fail to activate properly. Simple reinstalling the extension is not sufficient to address that, as VS Code preserves the original installation directory for the extension and reuses it. I'd suggest deleting the cpptools extension directory (under a .vscode-server folder in your user directory on the remote machine), and installing again.

Colengms avatar Jul 15 '22 18:07 Colengms

@Colengms removed the .vscode-server, reinstalled all extensions from scratch, still getting same errors unfortunately.

wrobelda avatar Jul 19 '22 18:07 wrobelda

Hi @wrobelda . Can you provide more information about your environment? When you open a C or C++ file, does the C/C++ extension try to activate and provide IntelliSense? Does it output anything to the C/C++ output log, with logging set to Debug as I mentioned previously? If so, the contents of that log could be useful.

We are not currently tracking any general issues preventing the extension from running remotely on Windows machines. Though, I have seen an issue in which the wrong native binaries may get installed. https://github.com/microsoft/vscode-remote-release/issues/7019 Could something like this be impacting your scenario?

Colengms avatar Jul 19 '22 21:07 Colengms

This issue has been closed because it needs more information and has not had recent activity.

github-actions[bot] avatar Oct 04 '22 11:10 github-actions[bot]