have you got the debugger turned on? if not you'll need to activate it
(through admin or the factory).

> -----Original Message-----
> From: Douglas Humphris [mailto:[EMAIL PROTECTED]]
> Sent: 20 January 2003 10:10
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Execution time on CFMX?
> 
> 
> Hi Spike,
> You're code ran fine on my dev server, but I get this when 
> running the code in OnRequestEnd.cfm on another server. It 
> doesn't like: debugger.getDebugger().getData().
> Any idea what's up? Can you only run the debugger on localhost?
> 
> -------
> Error Occurred While Processing Request  
> The system has attempted to use an undefined value, which 
> usually indicates a programming error, either in your code or 
> some system code. 
> Null Pointers are another name for undefined values.  
>  
>   
> The error occurred in I:\WebRoot\OnRequestEnd.cfm: line 4
>  
> 2 :   factory = 
> createObject('java','coldfusion.server.ServiceFactory');
> 3 :   debugger = factory.getDebuggingService();
> 4 :   qDebug = debugger.getDebugger().getData();
> 5 : </cfscript>
> 6 : <cfquery dbType="query" name="q" debug="false">
>  
> Many thanks, Douglas
> 
> 
> -----Original Message-----
> From: Spike [mailto:[EMAIL PROTECTED]]
> Sent: 17 January 2003 17:06
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Execution time on CFMX?
> 
> 
> Something like this should do it.
> 
> You might want to dump the qEvents query just to see what else you can
> get.
> 
> <cfif isDebugMode()>
>       <cfscript>
>       factory =
> createObject('java','coldfusion.server.ServiceFactory');
>       debugger = factory.getDebuggingService();
>       qDebug = debugger.getDebugger().getData();
>       </cfscript>
>       <cfquery dbType="query" name="q" debug="false">
>       SELECT template, parent, Sum(endTime - StartTime) AS pagetime
>       FROM qDebug
>       WHERE type = 'Template'
>       GROUP BY template, parent
>       ORDER BY pagetime DESC
>       </cfquery>
>       <cfoutput>Execution Time = #q.pagetime#<br></cfoutput>
>       <cfdump var="#qDebug#">
> </cfif>
> 
> Spike
> 
> Stephen Milligan
> Team Macromedia - ColdFusion
> Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
> Management'
> http://spikefu.blogspot.com
> 
> > -----Original Message-----
> > From: Douglas Humphris [mailto:[EMAIL PROTECTED]] 
> > Sent: 17 January 2003 16:52
> > To: [EMAIL PROTECTED]
> > Subject: [ cf-dev ] Execution time on CFMX?
> > 
> > 
> > Has anyone managed to figure out how to get the execution 
> > time of a template on CFMX before I attempt to do it?
> > 
> > Cheers,
> > Douglas
> > 
> > -- 
> > ** Archive: 
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to