خروجی xdebug به صورت تگ

پرسیده شده
فعالیت 1104 روز پیش
دیده شده 325 بار
0

سلام ,

بعضی مواقع وقتی برنامه ارور می ده خروجی به صورت تک های html در مرورگر چاپ می شه.

 

مثل :

<br />
<font size='1'><table class='xdebug-error xe-uncaught-exception' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Fatal error: Uncaught Error: Undefined class constant 'STATUS_TEXTS' in E:\Wamp\www\7learn\php\REST_API\App\Utilities\Response.php on line <i>142</i></th></tr>
<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Error: Undefined class constant 'STATUS_TEXTS' in E:\Wamp\www\7learn\php\REST_API\App\Utilities\Response.php on line <i>142</i></th></tr>
<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>
<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>
<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0007</td><td bgcolor='#eeeeec' align='right'>361176</td><td bgcolor='#eeeeec'>{main}(  )</td><td title='E:\Wamp\www\7learn\php\REST_API\api\v1\cities\index.php' bgcolor='#eeeeec'>...\index.php<b>:</b>0</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>2</td><td bgcolor='#eeeeec' align='center'>0.0012</td><td bgcolor='#eeeeec' align='right'>363256</td><td bgcolor='#eeeeec'>App\Utilities\Response::respond(  )</td><td title='E:\Wamp\www\7learn\php\REST_API\api\v1\cities\index.php' bgcolor='#eeeeec'>...\index.php<b>:</b>11</td></tr>
<tr><td bgcolor='#eeeeec' align='center'>3</td><td bgcolor='#eeeeec' align='center'>0.0012</td><td bgcolor='#eeeeec' align='right'>363256</td><td bgcolor='#eeeeec'>App\Utilities\Response::setHeaders(  )</td><td title='E:\Wamp\www\7learn\php\REST_API\App\Utilities\Response.php' bgcolor='#eeeeec'>...\Response.php<b>:</b>148</td></tr>
</table></font>

لطفا راهنمایی کنید.

فایل پیوست

Faraz salehi
Faraz salehi

6 اردیبهشت 00

0
حذف شده

سلام و احترام

سورس کدی که داخلش به خطا خوردید رو لطفا قرار بدید تا برسیش کنیم

فایل پیوست

امیر صالحی

توسط

امیر صالحی

6 اردیبهشت 00

حذف شده
من همین پروژه api رو جلو میرم و الان کد تغییر کرده .. ولی در کل برخی اوقات xdebug خطا ها رو به این صورت نمایش میده.
Faraz salehi

7 اردیبهشت 00