Bug #19262
debug_trail gives not filename
| Status: | New | Start date: | 2008-08-28 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| TYPO3 Version: | 4.3 | Complexity: | ||
| PHP Version: | 5.2 | |||
| Votes: | 0 |
Description
If you call t3lib_div::debug_trail (...) then you get info about the class and methodname. The linenumber inside of a file is given. But now you still do not know in which file to find the place from where it has been called from. This requires a complicated search. You will need the filename and not the classname.
It would be better to have the filename listed here. You can easily find the file by its name. To have a shorter display no path is required.
(issue imported from #M9246)
History
Updated by Franz Holzinger over 4 years ago
Here is an example of the given debug output:
debug_backtrace 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
You can see, that the line numbers are misleading.
recordList->generateList is called on line #295 in the file which contains the class SC_db_list.
Updated by Alexander Opitz 15 days ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Franz Holzinger 6 days ago
You have still the same problem in TYPO3 6.0.
typo3/sysext/core/Classes/Utility/DebugUtility.php
static public function debugTrail() {
...
$pathFragment = $dat['class'] . $dat['type'] . $dat['function'];
}
The file name is still missing.
Updated by Alexander Opitz 6 days ago
- Status changed from Needs Feedback to New