ProcScript Editor & Debugger
The ProcFu editor makes working with ProcScript code a lot easier. It does syntax highlighting, debugging, and a lot more.
Keyword Hinting
As you type, the editor will display all matching keywords for you to select from. Selecting one inserts it at the current cursor position.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-39-45.png)
Keyword Help
Pressing F1
while on a keyword will bring up the help for that keyword.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-40-26.png)
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.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-43-19.png)
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.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-28_08-23-23.png)
Setting Breakpoints
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.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-48-25.png)
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.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-49-34.png)
At this point, you can:
- Continue - continue running until the end or next breakpoint
- Step - only execute the next statement and pause again
- Stop
Just like with program return above, any variables that are objects or arrays can be interactively inspected by expanding / collapsing keys and nodes.
![](ProcScript%20Editor%20&%20Debugger%2075a5481da55743a1a4b6876ac039e10c/Screenshot_2020-07-30_08-50-16.png)