Debugging clang - sierra-lang/sierra GitHub Wiki

Invoke clang with the -cc1 switch in order to actually catch breakpoints. This will just invoke the pure front end - no code generation. Add -emit-llvm or -emit-obj to peek into later stages. Use the -v switch to see full command-line arguments and paste them into your gdb-run command.