Debugging Your IDE Extensions

   

Before you install your wizard as a package, you may find yourself wanting to debug your code. This can be accomplished by setting the C++Builder executable as the host application for your package as illustrated in Figure 23.7.

Figure 23.7. Run Parameters Dialog ”Setting up to debug a Wizard package.

graphics/23fig07.gif

With this added, when you run your package, another instance of C++Builder will load up. In that new instance, you'll need to install your Wizard package (the bpl file) using the Components\Install Package menu item. Any breakpoints you set in your wizard code will now be accessible in the original instance of C++Builder. Within this instance of C++Builder, you should be able to trace into [F7], step over [F8], and reach breakpoints in your code just as you would with a normal application.

However, there are a few caveats to make sure this works properly. First, make sure that the package is not already installed. If it is, you can remove it by selecting Install Packages from the Component menu. This will open a filtered version of the Project Options dialog, which contains only an enabled Packages view. This is illustrated in Figure 23.8.

Figure 23.8. Packages view.

graphics/23fig08.gif

To remove a package, simply select the Remove button.

Also make sure you include all the debug libraries by enabling them in your project options. Finally, make sure you have enough memory. Remember that you're loading a second instance of C++Builder, which requires a little bit of memory.


   
Top


C++ Builder Developers Guide
C++Builder 5 Developers Guide
ISBN: 0672319721
EAN: 2147483647
Year: 2002
Pages: 253

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net