User tests: Successful: Unsuccessful:
Pull Request re-create for #3780 .
JHtmlDebug helper to render backtrace.In current time, we use setError(), getError() and JError::raiseError() in component to send error message.
However, if we throw Exception, the debug plugin will not render backtrace for developer. It only work when we use JError::raiseError().
It's because we have this code in: https://github.com/joomla/joomla-cms/blob/master/plugins/system/debug/debug.php#L213
if (JDEBUG)
{
if (JError::getErrors())
{
$html[] = $this->display('errors');
}To detect whether display errors or not. When we throw an exception, the JError::getErrors() will return null that backtrace will not rendered.
I added backtrace layout in layouts/error/backtrace.php and now, debug plugin & isis template both include this layout. It will help developers know how errors occurred.
Global Configuration, enable the debug mode.index.php?option=foo in browser, you will see the error page.| Status | New | ⇒ | Pending |
| Category | ⇒ | Layout Libraries Front End Plugins |
| Labels |
Added:
?
|
||
| Category | Layout Libraries Front End Plugins | ⇒ | Layout Libraries Front End Plugins Unit Tests |
| Labels |
Added:
?
|
||
| Title |
|
||||||
I have tested this item
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC after two successful testes.
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-04-04 19:05:08 |
| Closed_By | ⇒ | rdeutz | |
| Labels |
Added:
?
|
||
Done