Articles tagged with "debug"X
Displaying 1-4 of 4 result(s).

Debuging variables in Yii2

Created 9 months ago by johonunuTips3 comments – viewed 5,147 times – ( +2 / -1 ) – version 2.0
This tutorial is explained following "basic" application structure.

Debugging CActiveRecord failed save() attempts

Created 2 years ago by BoazTips0 comments – viewed 16,389 times – ( +5 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

Access log output from unit tests

Created 3 years ago by MikeTips2 comments – viewed 6,457 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

Real Time Logging

Created 4 years ago by lucifuriousTips3 comments – viewed 22,658 times – ( +14 ) – version 1.1
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.