disassembly debug
已完成
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?
请先登录再写评论。
Hello!
Please provide a screenshot of your WSL toolchain (File | Settings | Build, Execution, Deployment | Toolchains).
Can you run (not debug) the project successfully?
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")
Thanks for letting us know!