ASPX templates
Version 5.x > ASPX templates > SQL Debug View modes: 
User avatar
Member
Member
seanbun - 2/16/2011 8:42:46 PM
   
SQL Debug
Hi,

I followed the development guide and put below appsetting key in my web.config

<add key="CMSDebugEverythingLive" value="true"/>

I expected to see the debug log displaying at the bottom of the page, but the debug page did not show up. Do I need to put a specific controls on my masterpage or inherit specific class? Please advise.

CMS Version: 5.0378
Type: ASPX Template

Cheers,
Matt

User avatar
Certified Developer 8
Certified Developer 8
dvanbale - 2/19/2011 12:13:04 PM
   
RE:SQL Debug
Hey Matt,

I've tried to replicate what you've said, I've also added the debug usercontrol (as mentioned here)

But I don't see any values returning, even worse, when I look at the code inside the debug control, it never starts the Render method because the controls it carries are all set (by default perhaps?) to invisible.

Even manually setting the Visible property to true does not work for me.

I'm at a loss here and hope a Kentico representative can help us both out!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/23/2011 3:18:29 AM
   
RE:SQL Debug
Hi,

I am sorry for the delay. I admit, it is not obvious from the documentation, but you need to enable the debug in the UI first and then it is possible to display it one live site. Please add this key into your web.config file:

<add key="CMSDebugEverything" value="true"/>

Best regards,
Juraj Ondrus

User avatar
Certified Developer 8
Certified Developer 8
dvanbale - 2/23/2011 1:13:02 PM
   
RE:SQL Debug
Dear Juraj,

Thanks for replying, I've added the CMSDebugEverything key to my web.config, however, what do you mean with "enable the debug in the UI"?

Do we have to configure something in the Site Manager?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/27/2011 3:51:57 AM
   
RE:SQL Debug
Hi,

No, you do not need to set anything in the UI - the key I mentioned should do it - CMSDebugEverything. This enables the debug in the UI and if you want to display it on the live site, you have to use the other key - <add key="CMSDebugEverythingLive" value="true"/>.

With this setup works everything just fine on my CMS installations.

Best regards,
Juraj Ondrus

User avatar
Member
Member
seanbun - 2/27/2011 6:44:19 PM
   
RE:SQL Debug
I have put below 2 keys in my web.config. Unfortunately, I still could not see the SQL Debug list on the list site.

1. <add key="CMSDebugEverything" value="true"/>
2. <add key="CMSDebugEverythingLive" value="true"/>

Again, I am using verson 5.0.3784

Cheers,
Matt

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/1/2011 12:01:04 PM
   
RE:SQL Debug
Hi Matt,

It is working just fine for me on my 5.0.3784 installation.
Have you modified the CMS in any way?
One more idea - this already happened to me as well, with no offence - are you editing correct web.config file? Could you please do some e.g. typing mistake in it to see if you will get compilation error?

Best regards,
Juraj Ondrus