callChain
callChain : collection
Parameter | Type | Description | |
---|---|---|---|
Result | collection | <- | Collection of objects describing the call chain within a process |
Description
The callChain
command returns a collection of objects describing each step of the method call chain within the current process.
It provides the same information as the debugger. It has the added benefit of being able to be executed from any environment.
The command facilitates debugging by enabling the identification of the method called, the component that called it, and the line number where the call was made. Each object in the returned collection contains the following properties:
Property | Type | Description | Example |
---|---|---|---|
database | text | Name of the database calling the method | "database":"contactInfo" |
line | integer | Line number of call to the method | "line":6 |
name | text | Name of the called method | "name":"moreThanAverage" |
type | text | Type of the method: | "type":"classFunction" |
Example
var currentCallChain : collection
currentCallChain = callChain()