getCurrentContext

Return the context (stacktrace) of the current position.

getCurrentContext() → returns array

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Compatibility

Lucee:

DEPRECATED since version 5 Lucee5+ this function is deprecated, use function CallStackGet instead.

Examples
Sample code invoking the getCurrentContext function

Simple dump of the call stack

writeDump(getCurrentContext());

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub