Reputation: 41
Well i have a project that i have to re-create the behavior of printf with flags, i'm using VSCode to debug using only LLDB, i'm using CodeLLDB and also C/C++ extensions to debug, my problem is the debugger can't enter and debug the function for example putd
if (*onchar == 'd')
putd(onchar, mydata, list);
I have a breakpoint in the line where the function is and inside the function as well, it just skip it and give me the result, the function works fine all good, but only the debugger can't enter the function.
And this is my config in launch.json
{
"type": "lldb",
"request": "launch",
"name": "Launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"cwd": "${workspaceFolder}"
}
PS: putd.c
is a separate file that i call in my function, and i include it in the mylib.h
and in the Makefile
as well.
Upvotes: 2
Views: 1999
Reputation: 41
I figure it out , i should've compile all the .c
files, i didn't compile all of them, while using gcc -g *.c
i just compiled the main.c
only.
Upvotes: 1