Skip to content

Debugging in Visual Studio

Thomas Weingartner edited this page Aug 30, 2021 · 4 revisions

To run Duplicati 2 with debugger attached, you have to set a environment variable, to prevent the autoupdater from launching a new instance. Otherwise you'll get the "The breakpoint will not currently be hit no symbols have been loaded for this document"-notification in Visual Studio.

There are multiple ways to set system wide Environment Variables under Windows.

Method 1 with System Properties UI

  • Open System Properties (type SystemPropertiesAdvanced in StartMenu).
  • Click Environment Variables.
  • Add a new variable named: AUTOUPDATER_Duplicati_SKIP_UPDATE
  • Set it's value to 1

Method 2 with SETX

  • Open Command Prompt
  • Type setx AUTOUPDATER_Duplicati_SKIP_UPDATE 1

Confirm it works by starting a new Command Prompt and type SET AUTOUPDATER and you should see it there. If you had VisualStudio running while doing this, it may be necessary to restart the program.

Now launch Duplicati.GUI.TrayIcon.