VSCode doesnt build and debug pthreads code

I got a few codes from https://computing.llnl.gov/tutorials/pthreads/ and I was trying to use the VSCode debugger to try to step through them but it doesnt seem to work. Using tasks (ctrl+shift+B) ...