Open meng-jpg opened 1 year ago
cpp-tools version: 1.8.4 launch.json:
{
"name": "Debug cpptools",
"type": "cppdbg",
"request": "launch",
"externalConsole": true,
"program": "C:\\Users\\tptuser\\ZStudio\\TerapinesSolution\\project.exe",
"args": [],
"cwd": "C:\\Users\\tptuser\\ZStudio\\TerapinesSolution"
}
@meng-jpg thank you for reporting the issue, can you share the example workspace you tested against and confirm what the behavior is in vscode? Also note that vscode-cpptools
is proprietary and cannot legally be used by non vscode products.
It's a simply helloworld.c:
#include <stdio.h>
int main() {
printf("hello\n");
return 0;
}
We compiled the helloworld.c via gnu-gcc and debugged it via the cpptools extension with the launch.json above.
Also note that
vscode-cpptools
is proprietary and cannot legally be used by non vscode products.
Does it mean that we cannot provide the cpptools to our customers in our IDE as a builtin extension? In that condition, is there any other c/c++ extensions available since we develop a debugger adapter based on the lldb-vscode extension but it's only a debugger and dose not have some intelligent functionalities.
Does it mean that we cannot provide the cpptools to our customers in our IDE as a builtin extension?
Exactly, it cannot be (legally) used by any product outside of official microsoft products.
In that condition, is there any other c/c++ extensions available since we develop a debugger adapter based on the lldb-vscode extension but it's only a debugger and dose not have some intelligent functionalities.
Developers building Theia apps usually include the clangd extension instead for C/C++ support. For debugging, you can use the cdt-gdb-debugger extension.
When we debugging in vscode via the same version of the cpptools:
The debugger created a window to print output since the externalConsole in the launch.json above is true. But Theia would create another window for the debug adapter binary of the extension.
Bug Description:
Steps to Reproduce:
1.start theia electron on windows 2.start debug with plugin
cpp-tools
3.A window of the debug adapter will be opened.Additional Information