Microsoft KB Archive/920194

From BetaArchive Wiki
Knowledge Base


How to debug a user interface add-in for Small Business Accounting

Article ID: 920194

Article Last Modified on 2/6/2007



APPLIES TO

  • Microsoft Office Small Business Accounting 2006 Software Development Kit 1.2
  • Microsoft Office Small Business Accounting 2006
  • Microsoft Office Small Business Management Edition 2006




INTRODUCTION

This article describes how to debug a user interface (UI) add-in that is created by using the Microsoft Office Small Business Accounting Software Development Kit (SDK).

MORE INFORMATION

To debug a UI add-in in Microsoft Visual Studio, follow these steps:

  1. Compile the UI add-in under the Debug configuration in Visual Studio. The Debug configuration compiles the UI add-in without optimization and with full symbolic debug information. By default, these are the settings for the Debug configuration.
  2. Copy the UI add-in assembly to the appropriate directory.
  3. Start Small Business Accounting, and then install the add-in by using the Add-in Manager.
  4. Close Small Business Accounting, and then restart Small Business Accounting.
  5. Open the UI add-in project in Microsoft Visual Studio .NET, click Tools, and then click Debug Processes.
  6. In the Processes window, click the SBA.exe process, and then click Attach.
  7. In the Attach to Process window, click to select the Common Language Runtime check box under Choose the program types that you want to debug, and then click OK.
  8. Close the Processes window.
  9. Add breakpoints to the code files in the UI add-in project.
  10. In Small Business Accounting, open the UI add-in, and then use the UI add-in. When the breakpoint is reached, Visual Studio pauses the execution of the UI add-in. Visual Studio then stops at the breakpoint.



Additional query words: SBA

Keywords: kbexpertiseadvanced kbhowto KB920194