Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section provides two recommended approaches to debugging your code-based configurations for Aptify:

Note

The sample application's Sample Code folder includes a Debug folder with a PDB file for each sample code project. You can use this file in conjunction with the distributed assemblies to run the projects in debug mode. (In other words, you do not need to recompile a sample project first before running in debug mode.)

Anchor
Debugging Procedure 1: Use Breakpoints with External ProgramDebugging Procedure 1: Use Breakpoints with External Program_DebuggingProcedure1
_DebuggingProcedure1
Debugging Procedure 1: Use Breakpoints with External Program

...

  1. Set the Solution Configuration to Debug, if not already specified.

    Confirm Debug Configuration
  2. Insert the breakpoint(s) where needed in your VB class.
  3. Build your VB Project.
  4. Copy the generated DLL and PDB files from the VB Project's Debug folder (typically, bin\debug) into your computer's Aptify program files directory (typically, C:\Program Files\Aptify 5.5).
  5. Upload the latest DLL into the Aptify Object Repository and close Aptify.
  6. Return to Visual Studio and open the Project Properties.
  7. Click the Debug tab.
  8. Browse or enter the path for the Aptify Shell.exe file in the Start external program field.

    Specify External Program
  9. Save the project.
  10. Click the Start Debugging button in Visual Studio 2008.

    Start Debugging Button
  11. When the Aptify Login dialog appears, enter your test server and account information.
    • Note that the dialog's Server and User fields will be blank, even if you have configured your server's Startup.exe.config file to pre-populate information, since you are running Aptify Shell.exe rather than Startup.exe and have bypassed the information in the Startup.exe.config file.

  12. Access the feature related to the DLL you are testing. You should hit the breakpoint accordingly when that line of code is going to be executed.

...

This procedure is similar to Debugging Procedure 1: Use Breakpoints with External Program, except you attach to an existing process rather than open a new instance of Aptify.

...

  1. Set the Solution Configuration to Debug, if not already specified.

    Confirm Debug Configuration
  2. Insert the breakpoint(s) where needed in your VB class.
  3. Build your VB Project.
  4. Copy the generated DLL and PDB files from the VB Project's Debug folder (typically, bin\debug) into your computer's Aptify program files directory (typically, C:\Program Files\Aptify 5.5).
  5. Upload the latest DLL into the Aptify Object Repository.
  6. Leave the Aptify application running and return to Visual Studio.
  7. Select the Debug > Attach to Process... menu item.

    Attach to Process Option

  8. Select the Aptify instance that is currently running and click Attach.
    • Be sure to select the correct instance if you have more than instance of Aptify currently running.

      Select Process
  9. After Visual Studio loads into debug mode, switch back to the Aptify application and access the feature related to the DLL you are testing. You should hit the breakpoint accordingly when that line of code is going to be executed.

...