User tests: Successful: Unsuccessful:
This Pull Request is a redo of #3780, see that PR for more information
This PR adds a JLayout file for the callstack backtrace. The debug plugin and isis template include this layout now.
On request of @roland-d in the original PR I also add clickable links for XDebug session. If the flag xdebug.file_link_format
is set in the php.ini the location link will be clickable.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Title |
|
Title |
|
Category | ⇒ | Layout |
Sorry to be a pain - but rather than putting this in the global JLayout folder can we please make it extension specific like we did for the stats layouts (https://github.com/joomla/joomla-cms/tree/staging/plugins/system/stats) - you'll need to adapt the code slightly like @phproberto did at https://github.com/joomla/joomla-cms/blob/staging/plugins/system/stats/stats.php#L279-L312
Sorry to be a pain - but rather than putting this in the global JLayout folder can we please make it extension specific like we did for the stats layouts
Please don't. @wilsonge JDocumentError
is also using this. And at a quick glance it looks like JError::renderBacktrace()
could too (I know that one's deprecated but proxying that to "current" code at least keeps things consistent).
Obviously this needs new unit tests
I don't have experience with unit testing
So it would be nice if someone else can correct these errors, makes a PR in my branch (https://github.com/n9iels/joomla-cms/tree/backtrace-isis)
This PR has received new commits.
This PR has received new commits.
This PR has received new commits.
If it's not too hard can you also have JError::renderBacktrace() use this
layout? If it is, no big deal, I'd just like old and new APIs to be
consistent if possible.
Otherwise this looks good to me.
On Thursday, October 13, 2016, Niels van der Veer notifications@github.com
wrote:
Better late than never!
I restored the checks as @mbabker https://github.com/mbabker suggested,
travis seems to be happy now.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10306 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoe9ahbEtfMgeYGNlFhgUGjBVhXQBks5qzqmsgaJpZM4IZnml
.
Category | Layout | ⇒ | Layout Libraries Front End Plugins |
I have some problems with this method in the JLayout: https://github.com/n9iels/joomla-cms/blob/d55866ca9ede1aff6652711f44f58732f09c7405/layouts/joomla/error/backtrace.php#L34
It is declared in the plugin class, but obviously the JLayout cannot find it. What is pretty why to handle this? Creating a PlgSystemDebugHelper
?
@mbabker JError
is deprecated so we don't have to support it. But I can give it a try if I solved the problem above
Yes, you'll need a helper method. It should be in the libraries though, not the debug plugin. You could probably add a method to JHtml
for this.
As for JError
being deprecated, well aware of that, however it's also good to proxy the deprecated code to new code to ease the transition where it makes sense. This is one of those places where in theory it should be easy to change and it results in one less inconsistency across our overall API (merging three places rendering in essence the same markup into one source is always good).
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-21 23:10:33 |
Closed_By | ⇒ | mbabker |
I have tested this item successfully on d475a04
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10306.