Debugging gcc frontend, how to configure CLion

Hi,

I am trying to configure CLion to debug gcc/C++ frontend. The command to debug frontend I use is:

`

./g++ -g hello.cc -o hello -wrapper gdb,--args

`

 

I created a new Run/Debug configurations, set to toolchain that i created(it uses the compiler that i built from the source), I selected a source file to compile and run and added compile options `-g -O0`. I am able to compile the file and run but cant debug C++ frontend.  What is the equivalent of the command above?

Best regards,
Berke

 

1

Please sign in to leave a comment.