Hi, when debugging Code::Blocks's plugin, I always see "incomplete type" message when gdb try to inspect some variables.
Those variable types (such as a variable has the type wxCommandEvent) are defined in wxWidgets library, but the debugee is linking to the release version of the wxWidgets library.
The solution to this kinds of issue is to adding the g++ build option "-femit-class-debug-always" when building the project(cbp file).
But I don't want to every cpp files in the cbp file to have such option, because there are so many cpp files in the project, once this option is added, I need to rebuild the whole project.
What I need is to enable this option only on a single cpp file(I just debug this file). How can I do that?
Any ideas? It looks like I need to tweak the build option on the single cpp file. So, something in the cpp file's property dialog? See the image shot below.
Thanks.
There are some discussion about the "-femit-class-debug-always" option:
1,
[solved] Creating a gdb Pretty-Printer for wxIPV4address2,
GDB can not show the type info of wxCommandEvent