Changes

Debugger

1,039 bytes added, 10:00, 23 October 2013
The code tab is to write and execute C# code using a standard [[coding box]]. By default it will come up with sample code for a class named ''ObjectTest'' and a method named ''TestObject''. On execution it will compile the code, instantiate a new class ''ObjectTest'' and invoke the method ''TestObject'', therefore all the code in the body of ''TestObject'' will be executed as well.
The This sample code will iterate through all objects passed as [[#Input parameters|input parameters ]] and print their Name and Description to the [[#Debug messages in code|debug output]]:
<source lang="csharp">
using System;
==Workflow==
===Example===
===Tracing===
==Output & Debugging section==
The output section is a tab page on the bottom of the debugger and displays messages from either the C# compiler or the workflow engine. New messages will always be added to the end and the debugger does never clear messages on its own. If you want to get rid of historical messages simply enter the output section and use {{Key press|Del}} to delete text.
 
The debug section can be used to print custom messages for the sake of debugging your code/workflow. If you want to get rid of historical messages simply enter the debug section and use {{Key press|Del}} to delete text.
 
===Debug messages in code===
To print messages to the debug tab use the static class ''Debugger'' in your code like in the following example:
<source lang="csharp">
Debugger.Output(this, "Hello, World!");
</source>
 
===Debug messages in workflow===
To print messages to the debug tab use the [[DebugMessage (Activity)|Activity DebugMessage]] from the category ''UBIK ControlFlow''
[[Category:UBIK Studio Tools]] [[Category:Coding]] [[Category:Workflow]]