how to debug with CI - very newb question |
[eluser]jorre[/eluser]
I'm aware that this will be the most newb a question can be, but here it comes: how can I debug my application? I'm trying to write log_message('debug', 'Some variable was correctly set'); in my controller wherever I need to see if my code gets interpreted or not. I don't get these messages on screen... Is this the right way to debug? Or how do you all debug your applications?
[eluser]Seppo[/eluser]
You should set up your "log_threshold" level to 2 or higher, and a log_path (by default it's in system/logs) and the message is written there.
[eluser]jorre[/eluser]
thanks Seppo. Is logging somewhere documented? I get a "Directory access is forbidden." when accessing /system/logs
[eluser]jorre[/eluser]
I found a much better way to debug over HERE: http://ellislab.com/forums/viewthread/71073/#352851 Exactely what I needed! |
Welcome Guest, Not a member yet? Register Sign In |