How is Lucee able to output the debug templates/information from the admin to screen?

388 views
Skip to first unread message

Josh Beach

unread,
May 18, 2016, 12:18:31 PM5/18/16
to Lucee
I have searched and have not been able to find any information.

Is this a possibility?

Thanks!

Andrew Dixon

unread,
May 18, 2016, 2:02:42 PM5/18/16
to lu...@googlegroups.com
Hi Josh,

You can turn on page level debugging in the web context admin under:

Debugging > Settings

and that will log debugging information for all page requests to the:

Debugging > Logs

section where you can set a limit for how many requests it stores logs for.

If you want them output to the browser, like ACF does, then you need to define a debug template to do this under:

Debugging > Templates

and in the template you can define which IP's the debugging information is output for.

Please make sure you remember to switch debugging off again (under Debugging > Settings) once you have the information you need as it does slow requests down.

Hope that helps.

Kind regards,

Andrew

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/84b7d70b-e311-4ba6-b894-60a1102f9742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Josh Beach

unread,
May 18, 2016, 3:22:59 PM5/18/16
to Lucee
Right we are trying to have it output to the browser like ACF.

I have a template set up, for all IP's, but it is not outputting to the browser like we had hoped, only to the Debugging -> Logs section.

Any thoughts on how to troubleshoot this, Andrew? Appreciate your help.

Josh

Andrew Dixon

unread,
May 18, 2016, 3:29:25 PM5/18/16
to lu...@googlegroups.com
Well, if you have the debugging switch on and a template defined and for all IPs then it should be there, which template type are you using?

Kind regards,

Andrew

Gert Franz

unread,
May 18, 2016, 3:31:21 PM5/18/16
to lu...@googlegroups.com
Are you sure you have not turned off debugging output in your app?
Try a simple template with nothing but a few lines.
And it depends on the type of debugging you chose.
Check it first with a very easy setup.

Gert

Sent from somewhere on the road

Andrew Dixon

unread,
May 18, 2016, 3:32:00 PM5/18/16
to lu...@googlegroups.com
@gert, if it is logging in the admin then it must be enabled right?

Kind regards,

Andrew

Josh Beach

unread,
May 18, 2016, 3:32:37 PM5/18/16
to Lucee
The template type is classic.

Andrew Dixon

unread,
May 18, 2016, 3:34:42 PM5/18/16
to lu...@googlegroups.com
Check the page source to make sure it is not being rendered into an element in your HTML that is hidden by CSS or something.

Also, like Gert suggested, try it was a simple page that doesn't do much, maybe sets a variable and output the variable or something.

Kind regards,

Andrew

Josh Beach

unread,
May 18, 2016, 4:02:39 PM5/18/16
to Lucee
Thanks for the suggestions. I was able to see the debug information in the browser by creating the simple page as you suggested.

Now I need to figure out why it's not outputting to the browser in our application.

Mark Drew

unread,
May 18, 2016, 4:10:45 PM5/18/16
to lu...@googlegroups.com
Check the source. We have an application that uses a bootstrap theme that stops the lucee debug showing. Annoying.  

Mark Drew
- Sent by typing with my thumbs. 

Josh Beach

unread,
May 18, 2016, 4:29:51 PM5/18/16
to Lucee
I've checked the source code to see if anything referring to the debug information was there and it was not.

Where do you recommend I search in our source code to see if anything is overriding/changing this functionality?

As far as I can tell, there isn't anything and it should be working.

Josh Beach

unread,
May 18, 2016, 4:37:39 PM5/18/16
to Lucee
Also, I have discovered that it is showing on some pages, following the defaulted error information in orange.

I am not sure why it is showing on some pages, but not on others.

Gert Franz

unread,
May 18, 2016, 4:40:05 PM5/18/16
to lu...@googlegroups.com
Then the easiest way to check it out to introduce aborts intob the code until you figure out out.

Gert

Sent from somewhere on the road

Gert Franz

unread,
May 18, 2016, 5:32:35 PM5/18/16
to lu...@googlegroups.com

Josh,

 

As I stated before, please try adding cfaborts into your code so that it stops and then you see when the debugging is not displayed anymore. Then you know the line where it happens.

 

Sincerely
Gert Franz

 

RASIA GmbH

Spittelgasse 7

5103 Moeriken-Wildegg

Switzerland

Email: ge...@rasia.ch
Skype: gert.franz

Phone Switzerland: +41 76 5680 231

 

image001.png
image002.png
Reply all
Reply to author
Forward
0 new messages