Cold Help System: Programming: ColdC Reference Manual: Functions: Task: call_trace()


LIST|INTEGER call_trace()

Depending on the debug mode, one of the following will be returned:

mode 0

Return 0

mode 1

Returns a list samples gathered by debugger. Each method call is sampled as the following list:

[tick#, this, definer, method]

tick#tick in which the call occured
thisreceiver of the call
definerdefiner of the called method
methodmethod name (a symbol)

Each method return is sampled as a tick#.

Note: The tick counts will be off if the task has been preepmpted and another task executed during the pause.

mode 2

In addition to the above, each method call has fifth element, giving the list of all the arguments passed in the call. Optional arguments (those defined as @rest in the arg list) are gathered into a list and placed into the result as a single element.

This function will automatically set the debug mode to 0.


atomic() | caller() | cancel() | definer() | method() | pause() | refresh() | resume() | sender() | stack() | suspend() | task_id() | tasks() | this() | tick() | ticks_left() | set_user() | user() | pass() | task_info() | call_trace() | debug_callers()


the Cold Dark