Changes
Debugger
,==Code==
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 sample code will iterate through all objects passed as input parameters and print their Name and Description to the debug output:
<source lang="csharp">
using System;
using System.Windows.Forms;
using UBIK.Kernel;
using UBIK.Runtime;
using UBIK.Runtime.Sys;
using UBIK.Compiler;
namespace Studio
{
public class ObjectTest
{
public void TestObject (params BaseClass[] InVariables)
{
//Example using static class debugger
Debugger.Output(this, "*** Started");
foreach (BaseClass obj in InVariables)
{
Debugger.Output(this, obj.Name + " " + obj.Description);
}
Debugger.Output(this, "*** Finished");
}
}
}
</source>
==Workflow==