disassembly debug

Completed

I use clion to do c++ project and set toolchain to WSL(use ssh), but when I tried to debug by gdb, I got a disassembly view somehow, but I didn't do any thing special! And I don't want to see the disassembly code, I want my origin code back! What can I do?

0
3 comments

Hello!

Please provide a screenshot of your WSL toolchain (File | Settings | Build, Execution, Deployment | Toolchains).

Can you run (not debug) the project successfully?

0
Avatar
Permanently deleted user

Thanks for answering, but I have already solved it by adding three extra lines in CMakeList.txt :

 

SET(CMAKE_BUILD_TYPE "Debug")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")

0

Thanks for letting us know!

0

Please sign in to leave a comment.