Bug #19262
closeddebug_trail gives not filename
100%
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)
Files
Updated by Franz Holzinger about 16 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 over 11 years 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 over 11 years 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 over 11 years ago
- Status changed from Needs Feedback to New
Updated by Mathias Schreiber almost 10 years ago
- Status changed from New to Needs Feedback
- Is Regression set to No
Hey Franz,
with the new namespaces logic inside TYPO3 would you still consider this a problem?
Please also keep in mind that IDEs like PHPStorm offer "Open by Classname" functions.
Updated by Mathias Schreiber almost 10 years ago
- Assignee set to Mathias Schreiber
Updated by Franz Holzinger almost 10 years ago
This won't be a problem with namespaces. The namespace will help to find the path to the file which you need.
However it would be nice, if you could make this configurable in a global constant.
Updated by Alexander Opitz over 9 years ago
- Category set to Logging
- Status changed from Needs Feedback to New
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47545
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47545
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47545
Updated by Daniel Goerz over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset a21f7f384e9763a1b8489a1b85dd35dbe6b9ac04.