Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Debugging frameworks is an extremely difficult task. The integration between the gdb debugger and Project Builder’s capability to display a breakpoint’s source code doesn’t work as seamlessly with frameworks. The best advice that can be given regarding debugging frameworks is to come up with a workflow that removes the need for it.
An old programming adage says that the code that doesn’t need to be debugged is the easiest code to debug. Because using the debugger with frameworks can be tricky at best, it is better to fully debug code before adding it to a framework. It is common practice to create a test application to use as a debugging harness. The test application makes it easy to exercise all the features of an object. Because debugging an application is generally easier than debugging a framework, it gives a good setting for any debugging sessions. When the object works as it should, it can then be added to the framework.