Debug Makefile projects on WSL

I'm having some troubles debugging a Makefile project on CLion, it is a very simple script that should open a window.

When opening it, I can see the detected targets from makefile are correct and it succesfully build an executable on wsl using the make definition. For debugging I tried to set it up as native application giving as executable the created binary file from make (as seen here: Makefile projects | CLion Documentation) however when running the command being called is just 

/mypath/Project1/window without any debugger attached, so the program is just run and my breakpoints are not hit. They get marked in white with the bar in diagonal.

Anyone has any idea on how to solve?

0

Hello!

Does the binary include debug symbols? Is -g added to CXXFLAGS in the Makefile?

Do you use the Debug button, not the "Run" one?

0

请先登录再写评论。