View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000982 | Xdebug | Uncategorized | public | 2013-10-02 08:54 | 2020-03-12 18:01 |
Reporter | aik099 | Assigned To | derick | ||
Priority | normal | Severity | feature | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Slackware | OS | Linux | OS Version | 13.3 |
Product Version | 2.2.3 | ||||
Fixed in Version | 2.3.0 | ||||
Summary | 0000982: Incorrect file paths in exception stack trace | ||||
Description | When Xdebug is printing out a stack trace (in orange) for an exception it thinks, that all files are in parent folder (..) for no reason (see image). In fact I have files scattered all over place (but within DocumentRoot of course). | ||||
Additional Information | PHP Version: 5.4.20 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | |||||
PHP Version | 5.4.10-5.4.14 | ||||
|
File, that throws exception: /modules/custom/units/sections/site_domains/e_site_domain_eh.php File paths from stack trace (if inspecting in debugger in PhpStorm):
It seems, that xdebug tries to figure out common path to replace with "..", but does that too aggressively. Removing DocumentRoot from all paths might be a good idea anyway. |
|
This is not a bug. Xdebug doesn't really mean "parent directory" with "../". It just means there is something before the /. If you hover over the filename, then you get the full path. |
|
Then you should use 3 dots (e.g. ".../filename.php") to indicate that the path is shortened and there is more to see. 3 dots at the end of text (e.g. "some text ...") exactly does that. In file path the "../" always means parent folder and this is what most of people would think about it, when they see it. Fact, that I can hover over to see full path isn't obvious either. I surely won't be trying to hover over each cell in stack trace table in hopes to get extra info. Usually if hovering over will show something, then element should be underlined with a dashed line. If clicking on element, then it should be underlined from the beginning or while hovering over on it (usual behavior with links). Xdebug is great debugging product, but common-sense GUI principles still need to be applied. P.S. |
|
As this is a minor issue, it's not very high on my list of things to look at. I'll see what I can do. |
|
It's that hard to add one dot in path name (will be "..." instead of "..") to make things clearer? |
|
I closed it as fixed last night already..., because I've fixed it: https://github.com/xdebug/xdebug/commit/1e13ca94dd66bbb462fc1dcd4402849377f1592b |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-02 08:54 | aik099 | New Issue | |
2013-10-02 08:54 | aik099 | File Added: xdebug_wrong_stracktrace_paths.png | |
2013-10-02 09:01 | aik099 | Note Added: 0002571 | |
2013-12-04 00:10 | derick | Note Added: 0002636 | |
2013-12-04 00:10 | derick | Status | new => resolved |
2013-12-04 00:10 | derick | Resolution | open => no change required |
2013-12-04 00:10 | derick | Assigned To | => derick |
2013-12-04 08:17 | aik099 | Note Added: 0002638 | |
2013-12-04 08:17 | aik099 | Status | resolved => feedback |
2013-12-04 08:17 | aik099 | Resolution | no change required => reopened |
2014-03-05 09:20 | derick | Note Added: 0002747 | |
2014-03-05 09:20 | derick | Status | feedback => assigned |
2014-04-25 23:01 | derick | Status | assigned => closed |
2014-04-25 23:01 | derick | Resolution | reopened => fixed |
2014-04-25 23:01 | derick | Fixed in Version | => 2.3dev |
2014-04-26 07:14 | aik099 | Note Added: 0002798 | |
2014-04-26 07:14 | aik099 | Status | closed => feedback |
2014-04-26 07:14 | aik099 | Resolution | fixed => reopened |
2014-04-26 09:08 | derick | Note Added: 0002799 | |
2014-04-26 09:08 | derick | Status | feedback => closed |
2014-04-26 09:08 | derick | Resolution | reopened => fixed |
2015-02-22 11:42 | derick | Note Edited: 0002799 | |
2015-02-22 11:42 | derick | Category | Usage problems => Feature/Change request |
2015-02-22 14:30 | derick | Fixed in Version | 2.3dev => 2.3.0 |
2020-03-12 16:55 | derick | Severity | minor => feature |
2020-03-12 18:01 | derick | Category | Feature/Change request => Uncategorized |