i would like to compile eosio with -g, to debug with GDB Leave a comment

hi ino t expert with cmake and i would like to be able to compile with -g flag ( the debug symbols) to be able to use gdb as debbuger, but i dont know how to activate -g flag, or where i have to put:
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -g")
set(CMAKE_BUILD_TYPE "Debug")
thanks in advance

Leave a Reply

Your email address will not be published. Required fields are marked *