Thanks, it only works when debugging is enabled though.
Is there not a way to get this kind of info with debugging off?

On 8/29/06, Ben Nadel <[EMAIL PROTECTED]> wrote:
> I haven't done too much with this, but you could potentially use the
> ServiceFactory to figure out which was the last template called. You would
> have to call the code within your function, then query it to figure out
> which was last... Not sure how they are ordered off hand.
>
>
> <!--- Create ColdFusion service factory. --->
> <cfset objFactory = CreateObject( "java", "coldfusion.server.ServiceFactory"
> ) />
>
> <!--- Get the debugging service. --->
> <cfset objDebugging = objFactory.GetDebuggingService() />
>
> <!---
>         Get the events table. This includes all events that have taken
> place, not just
>         template executions.
> --->
> <cfset qEvents = objDebugging.GetDebugger().GetData() />
>
> <cfdump var="#qEvents#" />
>
>
> .......................
> Ben Nadel
> www.bennadel.com
> Certified Advanced ColdFusion Developer
>
> Need Help?
> www.bennadel.com/ask-ben/
>
>
> -----Original Message-----
> From: Per Djurner [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 29, 2006 5:12 PM
> To: CF-Talk
> Subject: How to tell what template called a function?
>
> Does anyone know if there is a way I can tell what template (and what
> line) called a specific function?
>
> Something along the lines of what you get in cfcatch.tagContext but without
> having to throw an error to get it.
>
> Maybe there is some magic "under the hood" Java that can be used to get the
> info?
>
> / Per
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251420
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to