Debug - method of object Pm

Text dump into the Debug_info item of INFO system.
Debug(vValue As Variant, [nAttr As Variant])
Pm.Debug sValue, nAttr
vValue(Variant) Value that has to be dumped (it can even be 1-dimensional array)
nAttr[optional] (Variant) Attributes how to dump a text. The default value is 0. It can be sum of the following values:
1 - Detailed information about the vValue is dumped. This information depends on the value of the data type:
- Array - even values of all array items is dumped
- Object - all properties and methods of the object is dumped
- other type - the data type and the value is dumped
2 - Text is dumped into the "Debug2" folder. Otherwise it is dumped into the "Debug1" folder.
The Debug_info item is the text display, 1 text to 1 row. The Debug method adds to this item one row of text that is in the vValue parameter. The number of rows doesn't grow to infinity - after reaching the maximum number, the oldest rows are deleted. The maximum number of rows can be set on the page > INFO system settings.
The method can also be called in the graphic item events for Web panels. If the method is called in Web panel, there are following limitations:
- The nAttr parameter is not taken into consideration
- The text is not written to the INFO system on the server, but is stored on the Web client. Debug texts can be displayed on client side for debug purposes if Shift-Ctrl-Alt-space key is pressed in Web panel.
If in the file "Application.ini" in section [Log] the EnableDebug item is set, then the text is also written into the twxt file Application.log. The advantage of such approach is the accessibility of such logs even if the application is not running.
Text dump into the "Debug1" page:
JavaScriptVBScriptSelect and copy to clipboard

Pm.Debug("The algorithm is executed in the time:" + Pm.CreatePmDateObject().Format("%d.%m.%Y %H:%M:%S.%T"));
Dump of detailed information about the arr variable into the "Debug2" page:
JavaScriptVBScriptSelect and copy to clipboard

var arr = Pm.CreatePmArray().Array1("hello", 333, 3.14);
Pm.Debug(arr, 1+2);
PROMOTIC 8.3.30 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
- Pm
- Abs
- Cos
- Debug
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice