DebugWebFormResult DebugWebForm(OdId tOb, DebugWebFormArg tArg)
tOb. Moniker of repository object that is a web form.
tArg. Operation execution parameters.
The DebugWebForm method manages web form debugging.
The operation runs debugs web form application code and manages debugging process. To execute the operation, in the tOb field specify moniker if repository object that is a web form. The object moniker can be obtained on executing the GetObjects operation. In the tArg.dbgCommand field specify the command executed for debugged web form. The tArg.cstmArgs field can contain additional arguments that are sent to the OnShow event. These arguments are used if web form handles an operation of custom class object.
The operation results in the information about the current web form debugging status.
Below is the example of running web form for debugging. The request contains moniker of the repository object that is a web form. The response contains the current debugging status.
The C# example uses the FindObjectById function, which code is given in the Getting Object Description by Its Identifier example.
{
"DebugWebForm" :
{
"tOb" :
{
"id" : "MOJLOKEFOGAGGOAENBGAEIBNCJEHDMMEKIEKKCHOINPCKLHD!M!432354"
},
"tArg" :
{
"dbgCommand" :
{
"command" : "Start"
}
}
}
}
{
"DebugWebFormResult" :
{
"id" :
{
"id" : "MOJLOKEFOGAGGOAENBGAEIBNCJEHDMMEKIEKKCHOINPCKLHD!M!S!WFMKIHMPEFOGAGGOAEEBNHGMOEGHGAHANEJILLFCKJAGLEFLAK"
},
"state" : "Running"
}
}
public static DebugWebFormResult DebugWebForm(MbId mb, string modId, DebugCommand dCommand)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new DebugWebForm()
{
tArg = new DebugWebFormArg()
{
dbgCommand = new DebugModuleArg()
{
command = dCommand
}
},
tOb = new OdId() { id = mb.id + "!" + FindObjectById(mb, modId).k }
};
// Manage web form debugging
var result = somClient.DebugWebForm(tGet);
return result;
}
See also: