Re: [limesurvey-developers] Debug mode / CWebLogRoute with or without FireBug
The leading Open Source survey tool
Brought to you by:
c_schmitz
From: Menno D. <men...@er...> - 2012-02-29 13:37:30
|
If you are just interested in using something like firebug, take a look at this: http://www.yiiframework.com/wiki/114/how-to-log-and-debug-variables-using-cweblogroute/ works similar, add a 'log' to components and make sure to preload 'log' On 29-02-2012 14:10, Menno Dekker wrote: > What I did and finally worked: > download zip and put content in application\extensions > > modify application\config\config.php: > > 'import' => array( > 'application.core.*', > 'application.models.*', > 'application.controllers.*', > 'application.extensions.*' //START ADDING HERE > ), > 'preload'=>array('log'), > > 'components' => array( > 'log'=>array( > 'class'=>'CLogRouter', > 'routes'=>array( > array( > 'class'=>'CFileLogRoute', > 'levels'=>'error, warning, trace', > ), > array( // configuration for the toolbar > 'class'=>'XWebDebugRouter', > 'config'=>'alignLeft, fixedPos, collapsed, yamlStyle', > 'levels'=>'error, warning, trace, profile, info', > > 'allowedIPs'=>array('127.0.0.1','::1','192.168.1.54','10\.[0-9]*\.[0-9]*\.[0-9]*'), > ), > ), > ), > 'db' => array( //THIS IS THE NORMAL LINE AGAIN > > I had to play a little with the ip address, but now i have a little box > 'YII' in the top left. > > > On 29-02-2012 12:44, Denis Chenu wrote: >> Maybe ... >> >> But again how activate it ? >> >> I try put in >> application/extensions/ >> activate via config.php >> Not activated >> >> I try: >> protected/application/extensions/ >> >> activate via application/extensions/config/main.php ( just this extension) >> Not activated. >> >> I put my IP in allowedIPs >> >> Nobody use some debug functionnality to develop new LS functionnality ? >> >> Denis >> >> Le 29/02/2012 11:54, Menno Dekker a écrit : >>> Maybe this can help? >>> >>> http://www.yiiframework.com/extension/yiidebugtb/ >>> >>> On 29-02-2012 10:09, Denis Chenu wrote: >>>> Just a way to have information easily in a debug window . >>>> >>>> For example : a way to have a var_dump(array) on screen or window when >>>> i want to debug LS2.0 or change a functionnality. >>>> It's easy in a view, but not in models/controllers. >>>> >>>> I'm sure Yii have a debug system, and when we know this system, it's >>>> very clear to debug own function, but don't know how to do this. >>>> >>>> Denis >>>> >>>> >>>> Le 29/02/2012 09:49, Marcel Minke (Limesurvey) a écrit : >>>>> Denis, >>>>> >>>>> which information are you looking for? General page loading times or >>>>> execution time of certain functions? >>>>> >>>>> Best regards, >>>>> Marcel >>>>> >>>>> Am 28.02.2012 15:32, schrieb Denis Chenu: >>>>>> Hello, >>>>>> >>>>>> I had some difficulty to have some speed debug message with 2.0. I see >>>>>> we can have some log message in the Web Page ... But no way , i don't >>>>>> found how to do that ... >>>>>> >>>>>> Did someone know how to have a simple log message ? >>>>>> I try : >>>>>> http://www.yiiframework.com/wiki/114/how-to-log-and-debug-variables-using-cweblogroute/ >>>>>> . I think i make something bad >>>>>> I try : http://code.google.com/p/yii-environment/ . I don't understand >>>>>> where/how to put log. >>>>>> >>>>>> Thanks ! >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Keep Your Developer Skills Current with LearnDevNow! >>>>>> The most comprehensive online learning library for Microsoft developers >>>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >>>>>> Metro Style Apps, more. Free future releases when you subscribe now! >>>>>> http://p.sf.net/sfu/learndevnow-d2d >>>>>> _______________________________________________ >>>>>> limesurvey-developers mailing list >>>>>> lim...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >>>>>> >>>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Virtualization& Cloud Management Using Capacity Planning >>>>> Cloud computing makes use of virtualization - but cloud computing >>>>> also focuses on allowing computing to be delivered as a service. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>> _______________________________________________ >>>>> limesurvey-developers mailing list >>>>> lim...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >>>> ------------------------------------------------------------------------------ >>>> Virtualization& Cloud Management Using Capacity Planning >>>> Cloud computing makes use of virtualization - but cloud computing >>>> also focuses on allowing computing to be delivered as a service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> limesurvey-developers mailing list >>>> lim...@li... >>>> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >>> ------------------------------------------------------------------------------ >>> Virtualization& Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> limesurvey-developers mailing list >>> lim...@li... >>> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers >> ------------------------------------------------------------------------------ >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> limesurvey-developers mailing list >> lim...@li... >> https://lists.sourceforge.net/lists/listinfo/limesurvey-developers > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > limesurvey-developers mailing list > lim...@li... > https://lists.sourceforge.net/lists/listinfo/limesurvey-developers |