The ProcFu editor makes working with ProcScript code a lot easier. It does syntax highlighting, debugging, and a lot more.
As you type, the editor will display all matching keywords for you to select from. Selecting one inserts it at the current cursor position.
F1 while on a keyword will bring up the help for that keyword.
If you're editing code in Citrix Podio Workflow Automation using our Chrome Extension, you can insert GlobiFlow tokens by pressing
ALT+T - the same key combination you'd use in GlobiFlow. This allows you to pick a token and it will be inserted.
You can also over-ride any token before testing your code on the right-hand side of the editor window.
Please note though that token values are inserted by GlobiFlow as-is. In other words, if you're expecting a string in your code, you'd need to put the token in quotes and
urldecode it. For example:
numeric = [(Item) Podio Item ID] string = urldecode("[(Item Title]")
Running your Code
You can test your code by clicking on the
Run button. The console will then show any errors, any output, and the return value.
If your code is returning an array or object, you'll be able to navigate it in the console by expanding and collapsing individual nodes and keys.
If you click on a line number in the left gutter of the editor, you can set and clear breakpoints. They will show as a red disc.
Now, when you run your code, execution will pause on any line with a breakpoint. When paused, you will be able to see any variables and their current values.
At this point, you can:
- Continue - continue running until the end or next breakpoint
- Step - only execute the next statement and pause again
Just like with program return above, any variables that are objects or arrays can be interactively inspected by expanding / collapsing keys and nodes.