I'm trying to debug a C program using Visual Studio Code in Ubuntu.
I set
"program": "${workspaceRoot}/sample"
in the launch.json where "sample" is the name of my program. Then I simply put a breakpoint in code and click the debug arrow. However, the debugger does not hit the breakpoint, a terminal simply flashes and closes. When I hover over my breakpoint it says:
Module containing this breakpoint has not yet loaded or the breakpoint adress could not be obtained.
Is there an additional setting that I must configure ?