File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ public function formatThrowableData($e)
108108 'code ' => $ e ->getCode (),
109109 'file ' => $ filePath ,
110110 'line ' => $ e ->getLine (),
111+ 'stack_trace ' => $ e ->getTraceAsString (),
111112 'surrounding_lines ' => $ lines ,
112113 'xdebug_link ' => $ this ->getXdebugLink ($ filePath , $ e ->getLine ())
113114 );
Original file line number Diff line number Diff line change @@ -558,6 +558,13 @@ if (typeof(PhpDebugBar) == 'undefined') {
558558 }
559559 } ) ;
560560 }
561+ if ( e . stack_trace ) {
562+ e . stack_trace . split ( "\n" ) . forEach ( function ( trace ) {
563+ var $traceLine = $ ( '<div />' ) ;
564+ $ ( '<span />' ) . addClass ( csscls ( 'filename' ) ) . text ( trace ) . appendTo ( $traceLine ) ;
565+ $traceLine . appendTo ( li ) ;
566+ } ) ;
567+ }
561568 } } ) ;
562569 this . $list . $el . appendTo ( this . $el ) ;
563570
You can’t perform that action at this time.
0 commit comments