I followed tips found in http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks (http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks)
i.e. compiler build settings (enable debugging symbols), no optimization or symbol stripping.
Then rebuild wxCustomButton, reinstall wxCustomButton, Rebuild test GUI, Debug test GUI.
Result is the same as before. GUI app uses the same shared library as before.
0x00840c87 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
This should read, "libwx_baseud-2.8.so.0" instead (i.e. the debug version of the shared library). How do I change it?