Debug a.out without source and debug symbol? #631
-
Hi, CodeLLDB developers and users Question descriptionI previously use VSCode + CodeLLDB + Clangd for debugging when there is source code, it works fine. ExampleTake an example, #include <stdio.h>
void f1()
{
int a = 1, b = 2, c = 3;
}
void f2()
{
int a, b, c;
printf("%d, %d, %d\n", a, b, c);
}
int main()
{
f1();
f2();
return 0;
} Compile it with TrialsReference: microsoft/vscode-cpptools#2267 Based on the two references, I think passing arguments to gdb/lldb would be an option. What I have tried (but failed) is add contents in "miDebuggerArgs": [
// "-ex",
// "\"break main\""
"-x",
"/home/zz/work/project/test/gdb.commands"
] |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
miDebuggerArgs
is not a valid configuration attribute for this extension. Have you tried simply specifying"program": "your/path/a.out"
and setting a function breakpoint on "main"?