You are viewing limited content. For full access, please sign in.

Question

Question

Feature Request: Workflow SDK Script Editor & Script Editor Debugger

asked on December 20, 2023

I really enjoy the feature of being able to add my own C# code into some of the workflows that I make but it would be really helpful to be able to debug right in the Script Editor or SDK Script Editor itself. Currently I am copying code over to Visual Studio and testing it there.

If anyone else has found a work around for this please let me know. 

0 0

Replies

replied on December 20, 2023

What exactly do you mean by debugging? The workflow designer, at least for self-hosted, already lets you run scripts within the script editor.

you can also use WorkflowApi methods to write to the editor's output at the bottom (and the workflow activity when it runs).

WorkflowApi.TrackError(message)

WorkflowApi.TrackWarning(message)

WorkflowApi.TrackInformation(message)

1 0
replied on December 20, 2023

You could also add "watches" for values and WF will record them as run the script from the Designer.

You could also use MsgBox to have the script pop up messages when it reaches a specific line of code. Message boxes only pop up when the script runs from the script designer and are automatically suppressed when the script runs as part of a published workflow, so you can leave them in the code.

2 0
replied on December 20, 2023

Hi Jason and Miruna,

Thank you for your responses. I was hoping for something a little more efficient similar to Visual Studio, Spring or Eclipse debug feature where users can add break points and step through each line of code. I appreciate your recommendations and will will look into implementing.

Understandably, this is a big ask to get this feature added into Workflow. Would this be a feature that could possibly get added in the future?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.