What tools are there to debug code in DWKit?

You can debug code in IDE Visual Studio or JetBrains Rider. In order to debug the code that you entered in CodeActions you need to do the following:

  1. runtime.CodeActionsDebugOn(), where runtime is an instance of WorkflowEngine
  2. Add /*break*/ or
if (System.Diagnostics.Debugger.IsAttached) {

to your code.

For Linux/Mac you need to specify a temporary folder to the TEMP environment variable. DWKit will use this folder to debug the code compiled at runtime. We use it in the following way: var directory = Path.GetDirectoryName(Environment.GetEnvironmentVariable("TEMP"));.