Integration with Visual Studio 2005 and Visual Studio 2008

Installation

The integration is installed and uninstalled by Installation Manager. If you didn’t select the integration when you installed PurifyPlus you can rerun Installation Manager and use the Modify feature. Then select the integration you want and install it. You can install both integrations if you have both IDEs installed.

Please be sure to close any running copies of Visual Studio first. You will see the PurifyPlus menu item the next time you start Visual Studio.

If you need to remove the integration for some reason, you can do this by using the Modify feature of Installation Manager and deselecting the integration. The integration will then be removed. Once again, please be sure you close any running copies of Visual Studio first.

Using the Integration

The integration provides access from within Visual Studio to the functionality provided in the standalone PurifyPlus user interfaces. It works with your source code projects to allow runtime analysis in Visual Studio.

To use the integration, select ‘Engage Purify Integration’ for example. Then when you either debug or run without debugging Purify will display it’s results in windows in Visual Studio that you can dock alongside other Visual Studio windows. PurifyPlus will provide analysis depending on the type of solution you have open, as follows:

§      C/C++ solution (not using the /clr option). These unmanaged programs will be instrumented and the instrumented program will be run and analyzed.

§      Any .NET language (C#, VB.NET, J#.) solution will be analyzed by the appropriate PurifyPlus .NET agent.

§      C++ solution using the /clr option will be treated as a .NET (managed) app and it’s managed components will be analyzed by the appropriate PurifyPlus .NET agent.

§      PurifyPlus should co-exist peacefully with other types of solutions that can’t be analyzed. If you do run into any conflicts selecting ‘Disengage Purify Integration’ (for example) should remove any conflict.

Known Issues

§      When a PurifyPlus window is first opened it will be a docked window. You can move it and you can dock it wherever you like. Note that Visual Studio remembers different windows layouts for design and debug modes, so the PurifyPlus windows may change location as you go into and out of debugging.

§      At present you can’t open an executable file as a solution and debug it with any of the PurifyPlus components.

§      If a situation arises where there are multiple PurifyPlus menus in Visual Studio, this can be fixed by removing the integration and then adding it again by using the Modify feature of Installation Manager as documented in the Installation section above. Try removing the integration and restarting Visual Studio to verify the menus are gone. Then add the integration again.

§      Of course, if you run into a situation where you can’t use PurifyPlus in Visual Studio you can always use the standalone user interface via the Start Programs menu.

(C) Copyright IBM Corporation 1992, 2010.