[TYPO3-core] RFC #9246: debug_trail gives no filename

Franz Holzinger franz at fholzinger.com
Wed Nov 12 11:32:38 CET 2008


This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=9246

Branches:
trunk, TYPO3_4-2

Problem:
The function t3lib_div::debug_trail shows the line numbers on the wrong 
place. Only the class names are show, but no filenames.

Solution:
Add the filename to the debug output together with the line number.

Notes:
You get a debug backtrace output like
------------------------
SC_db_list->main#451 // recordList->generateList#295 // 
localRecordList->getTable#268 // ux_t3lib_DB->exec_SELECT_queryArray#400 
// ux_t3lib_DB->exec_SELECTquery#272 // ux_t3lib_DB->myDebug#210
------------------------
This patches changes it to
------------------------
db_list.php#451:SC_db_list->main // 
db_list.php#295:recordList->generateList // 
class.db_list.inc#268:localRecordList->getTable // 
class.db_list_extra.inc#400:ux_t3lib_DB->exec_SELECT_queryArray // 
class.ux_t3lib_db.php#272:ux_t3lib_DB->exec_SELECTquery // 
class.ux_t3lib_db.php#210:ux_t3lib_DB->myDebug
------------------------
This more detailed info will help you to save time when searching for 
the files and linenumbers of the previous call.


Franz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bug9246.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081112/3df56603/attachment.txt 


More information about the TYPO3-team-core mailing list