setzlog
DATABASE
,
PROCEDURE
,
ENABLE
The setzlog statement turns instrumentation coverage on or off for a specific procedure (or all procedures within a database).
Parameters
This statement has three parameters:
database – the database containing the procedure. If left empty, the procedure is assumed to be in the current database.
procedure – the procedure to enable/disable coverage. If left empty, then coverage for all procedures will be set.
enable – a boolean value, true to enable or false to disable. If this parameter is omitted, the coverage will be toggled.
Description
This statement >turns instrumentation coverage on or off for a specific procedure (or all procedures within a database). This example enables instrumentation for the New Invoice procedure in the current database.
setzlog "","New Invoice",true()
This example turns off instrumentation for all procedures in the current database.
setzlog "","",false()
Note: The normal way to enable or disable instrumentation is to use the Instrumentation preferences panel or the Instrumentation menu. See Debug Instrumentation to learn more about instrumentation.
See Also
- Client/Server Debug Instrumentation -- using instrumentation with Panorama X server and clients.
- Coding with Debug Instrumentation -- modifying your code to generate debug instrumentation output.
- Crash Proof Debug Instrumentation Monitoring -- real time crash-proof instrumentation monitoring
- Customizing Debug Instrumentation Coverage -- specifying what code is being debugged at the moment.
- Debug Instrumentation -- conditional logging of the internal state of Panorama program code.
- Debug Instrumentation Log Window -- dynamically monitor debug instrumentation output as your program runs.
- Debug Instrumentation Monitoring using an External Program -- monitoring debug instrumentation with an external program (Terminal.app, BBEdit.app).
- Debug Instrumentation Text File -- configuring and accessing the debug instrumentation log (text) file.
- info("runningunderterminal") -- returns the name of the terminal program if Panorama was launched under one, otherwise it returns empty text.
- labelize( -- returns the value of a field or variable along with a label. This saves typing when you need to display fields or variables when logging and debugging.
- labelizeformula( -- returns the value of a formula along with the formula itself as a label.
- labelizeinfo( -- returns the value of an info( function, along with the function itself as a label.
- labelizepattern( -- formats a text value using a label and a pattern.
- Recording Code Triggers in Debug Instrumentation -- the code triggers option automatically tracks whenever any code is triggered, whether from a menu, a button, or implicitly (for example when data is entered).
- Recording Control Flow in Debug Instrumentation -- configure debug instrumentation to automatically log when control flow is non-linear, for example a call, return, goto, etc.
- zlog -- outputs a message to the instrumentation log (if instrumentation is enabled).
- zlogalways -- unconditionally outputs a message to the instrumentation log.
- zlogcoverage -- allows instrumentation coverage to be turned on or off within a procedure.
- zlogdictionary -- outputs a data dictionary to the instrumentation log (if instrumentation is enabled).
- zlogging( -- returns true if zlogging is enabled for the current database and procedure, otherwise false.
History
10.2 | New | New in this version. |