Configuring and running the debugger for Spotfire Windows application extensions

To be able to debug an extension with the installed Windows client, the extension must be packaged as a Spotfire Module, that is, placed in a separate folder with a file called module.xml that contains metadata for the module.

Before you begin

Procedure

  1. Open the solution in Visual Studio.
  2. In the Solution Explorer, right-click the project, and then select Properties.
  3. On the Debug page, click Open debug launch profiles UI.
  4. In the Launch Profiles dialog, click Create a new profile, and choose Executable.
  5. For your new profile, under Executable, point to a Spotfire.Dxp.exe on your computer. It could be your installed version, some intermediate beta-version or similar.
    For example: C:\Users\{username}\AppData\Local\Spotfire\{version}\Spotfire.Dxp.exe
  6. Under Command line arguments, enter /loadallmodules /addmodulefolder:<path to the Module-folder in your SDK>.
    For example: /loadallmodules /addmodulefolder:C:\SpotfireSDK\SDK\MyExtensions\Build\Modules

    The argument /loadallmodules forces Spotfire to load the highest version of all modules it can find in the set of module-folders, regardless of the deployed packages on the selected deployment area.

    The argument /addmodulefolder adds a path to a folder where Spotfire should search for modules to load. The argument can be repeated if more folders must be added.

  7. Close the dialog.
  8. To verify that the extension is actually loaded, select the new Debug profile in Visual Studio and run it. Make sure that Spotfire is launched.


  9. In Spotfire, under Help > Support Diagnostics and Logging, scroll down the list of loaded files to verify that your extension has been loaded.