Skip to content

/AWS1/CL_CWSCODECAPTURECONF

Defines what data to capture for code-level instrumentation, including arguments, return values, stack traces, local variables, and safety limits.

CONSTRUCTOR

IMPORTING

Required arguments:

io_capturelimits TYPE REF TO /AWS1/CL_CWSCAPTLIMITSCONFIG /AWS1/CL_CWSCAPTLIMITSCONFIG

Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.

Optional arguments:

it_capturearguments TYPE /AWS1/CL_CWSSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).

iv_capturereturn TYPE /AWS1/CWSBOOLEAN /AWS1/CWSBOOLEAN

Whether to capture the return value. Defaults to false.

iv_capturestacktrace TYPE /AWS1/CWSBOOLEAN /AWS1/CWSBOOLEAN

Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.

it_capturelocals TYPE /AWS1/CL_CWSSTRINGLIST_W=>TT_STRINGLIST TT_STRINGLIST

The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.


Queryable Attributes

CaptureArguments

The function arguments to capture. Omit to capture defaults, use an empty list to capture none, use ["*"] to capture all arguments, or specify argument names to capture selectively (up to 10 entries).

Accessible with the following methods

Method Description
GET_CAPTUREARGUMENTS() Getter for CAPTUREARGUMENTS, with configurable default
ASK_CAPTUREARGUMENTS() Getter for CAPTUREARGUMENTS w/ exceptions if field has no va
HAS_CAPTUREARGUMENTS() Determine if CAPTUREARGUMENTS has a value

CaptureReturn

Whether to capture the return value. Defaults to false.

Accessible with the following methods

Method Description
GET_CAPTURERETURN() Getter for CAPTURERETURN, with configurable default
ASK_CAPTURERETURN() Getter for CAPTURERETURN w/ exceptions if field has no value
HAS_CAPTURERETURN() Determine if CAPTURERETURN has a value

CaptureStackTrace

Whether to capture a stack trace when the instrumentation point is hit. Defaults to true.

Accessible with the following methods

Method Description
GET_CAPTURESTACKTRACE() Getter for CAPTURESTACKTRACE, with configurable default
ASK_CAPTURESTACKTRACE() Getter for CAPTURESTACKTRACE w/ exceptions if field has no v
HAS_CAPTURESTACKTRACE() Determine if CAPTURESTACKTRACE has a value

CaptureLocals

The local variables to capture by name. Omit or pass an empty list to capture none. You can specify up to 20 names.

Accessible with the following methods

Method Description
GET_CAPTURELOCALS() Getter for CAPTURELOCALS, with configurable default
ASK_CAPTURELOCALS() Getter for CAPTURELOCALS w/ exceptions if field has no value
HAS_CAPTURELOCALS() Determine if CAPTURELOCALS has a value

CaptureLimits

Safety limits that bound what is captured, including hit counts, string length, collection depth, and stack trace size.

Accessible with the following methods

Method Description
GET_CAPTURELIMITS() Getter for CAPTURELIMITS