Spotfire Developer Documentation

Configuring the debugger for Spotfire web client extensions

You can test the extension that you have developed in web clients.

About this task

Perform this task in Spotfire Package Builder, in Visual Studio, and in the web interface on the Spotfire Server that you plan to use with the extension.

Before you begin

  • You must have administration access to Spotfire Server.
  • You must have completed all tasks under Extending the Spotfire installation.
  • Your extension must have the intended client set to Spotfire Web Client. See Spotfire Package Builder concepts for more information about intended clients.
  • The Spotfire node manager must be installed locally.
  • The Web Player service must be added on the local node manager. See Spotfire® Server and Environment Installation and Administration for more information.
  • The Spotfire Web Player package must be deployed on the server for debugging. It is delivered as part of the client package .sdn files Spotfire.Dxp.sdn or Spotfire.Dxp.netcore-linux.sdn.

Procedure

  1. From Spotfire Package Builder, deploy the extension. See Deploying a package from Package Builder for more information.
  2. In the Spotfire Server web administration pages, stop the service instance.
  3. In Visual Studio, add a post-build event to replace the assembly that the node manager has installed in the Web Player installation folder.
    /// Example
    copy /y 
    "$(TargetDir)$(TargetFileName)
    "C:\spotfire\nodemanager\14.0.0\nm\services\WebWorker-56.0.17105.7178-00f42fd0-6b3d-48ae-bb55-f24140430e3f
    \Modules\MyExampleExtension_1.0"
  4. In Visual Studio, attach a debugger by calling System.Diagnostics.Debugger.Launch() External link in your code.
  5. In Visual Studio, rebuild the project.
  6. In Spotfire Server, from Nodes & Services, start the service instance to load the new assemblies.