Announcement

Collapse
No announcement yet.

How do you debug a multiple instance plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you debug a multiple instance plugin

    specifically i would like to debug the second instance

    I'm using VS15 with VB.net

    i have the following plugin calls:

    Public Function SupportsMultipleInstancesSingleEXE() As Boolean Implements HomeSeerAPI.IPlugInAPI.SupportsMultipleInstancesSingleEXE
    Return False ' True requires the plugin to manage the the instances
    End Function

    Public Function SupportsMultipleInstances() As Boolean Implements HomeSeerAPI.IPlugInAPI.SupportsMultipleInstances
    Return True
    End Function
    Mark

    HS3 Pro 3.0.0.534
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

  • #2
    I believe you have to attach to the process, so if you want to debug say startup you'll need to put in a sleep loop (usually in a debug build) so you have a chance to connect to it.

    Comment


    • #3
      Thanks for the response.

      maybe i'm missing something. With the settings i have above, aren't all the instances running out of the same exe? so i shouldn't have to connect to anything if i start the plugin via vs15 and just add instances via the plugin manage page
      Mark

      HS3 Pro 3.0.0.534
      Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
      Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
      Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

      Comment

      Working...
      X