Hi, guys. I’m trying to compile my cocos2d-x cpp project with debugging symbols, so that I can debug it with gdb on vim, as I’m not a fan of IDEs. I’m doing so with the following command:
cocos compile -m debug -p linux. However, after loading the binary onto gdb (with
file bin/debug/linux/projectname), I get no results when I search for those symbols. For instance, when I run
info types TypeName I get nothing returned to me. Furthermore, if I search for info on a function I’ve declared (with
info functions NameSpace::TypeName::funcName), the name of that function and no additional info gets listed under the “Non-debugging Symbols section”, thus suggesting these symbols aren’t being attatched to my binary when compiling.
How can I actually get those symbols? If I were to compile some program directly with
g++ I’d be able to just pass the
-g flag, but how can I go about doing that with the
cocos tool. If I’m not able to do this using the
cocos tool, how can I go about compiling my game without it and without an IDE?