Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Debugging Frameworks

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial