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)
108
108
'code ' => $ e ->getCode (),
109
109
'file ' => $ filePath ,
110
110
'line ' => $ e ->getLine (),
111
+ 'stack_trace ' => $ e ->getTraceAsString (),
111
112
'surrounding_lines ' => $ lines ,
112
113
'xdebug_link ' => $ this ->getXdebugLink ($ filePath , $ e ->getLine ())
113
114
);
Original file line number Diff line number Diff line change @@ -558,6 +558,13 @@ if (typeof(PhpDebugBar) == 'undefined') {
558
558
}
559
559
} ) ;
560
560
}
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
+ }
561
568
} } ) ;
562
569
this . $list . $el . appendTo ( this . $el ) ;
563
570
You can’t perform that action at this time.
0 commit comments