Hello dear authors of xdebug. Write your russian colleague
I find wonderful function collection in xdebug:
- xdebug_start_error_collection<http://xdebug.org/docs/all_functions#xdebug_start_error_collection>
- xdebug_get_collected_errors<http://xdebug.org/docs/all_functions#xdebug_get_collected_errors>
- xdebug_stop_error_collection<http://xdebug.org/docs/all_functions#xdebug_stop_error_collection>
I try using this sunction in my project, but this is function not work,
effects such as if it is not. I read all docs and configs, but find only
this 3 references.
*My code*
echo "before xdebug_start_error_collection\n";
xdebug_start_error_collection();
echo "after xdebug_start_error_collection\n";
echo $generate_notice;
echo "after notice generate\n";
xdebug_get_collected_errors();
echo "after xdebug_get_collected_errors";
*My result*
before xdebug_start_error_collection
after xdebug_start_error_collection
<br />
<font size='1'><table class='xdebug-error' 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> Notice: Undefined variable: generate_notice in
D:\work\rumb-software\htdocs\ru-wartur\www\public-html\index.php on line
<i>22</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.0004</td><td bgcolor='#eeeeec'
align='right'>335136</td><td bgcolor='#eeeeec'>{main}( )</td><td
title='D:\work\rumb-software\htdocs\ru-wartur\www\public-html\index.php'
bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>
</table></font>
after notice generate
after xdebug_get_collected_errors
But!
notice must layout after "after notice generate", as wrote in documentation.
*My platform*
xampp 1.7.4 colection
Pleas help us with this problem becose at russian forums we do not know how
do this, and at foreign internet too. This function described only in
documentation, without setup comments. (may be need something change in
config??? I do not find)
Thaks. I apologize for the trouble, xdebug is good product.
-- Best regards, Artur Krivtsov, http://wartur.ru/Received on Wed Dec 14 2011 - 20:23:25 GMT
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST