[xdebug-general] Re: I have one problem with wonderful function - xdebug_start_error_collection

From: Artur Krivtsov <gwartur[@]gmail.com>
Date: Thu, 15 Dec 2011 00:35:33 +0400

I'm sorry, this is phpinfo of my platform
xdebug xdebug supportenabled Version 2.1.0rc1
 Supported protocolsRevision DBGp - Common DeBuGger Protocol $Revision:
1.145 $
 DirectiveLocal ValueMaster Value xdebug.auto_traceOffOff
xdebug.collect_assignmentsOffOff xdebug.collect_includesOnOn
xdebug.collect_params00 xdebug.collect_returnOffOff xdebug.collect_varsOff
Off xdebug.default_enableOnOn xdebug.dump.COOKIE*no value**no value*
xdebug.dump.ENV*no value**no value* xdebug.dump.FILES*no value**no value*
xdebug.dump.GET*no value**no value* xdebug.dump.POST*no value**no value*
xdebug.dump.REQUEST*no value**no value* xdebug.dump.SERVER*no value**no
value* xdebug.dump.SESSION*no value**no value* xdebug.dump_globalsOnOn
xdebug.dump_onceOnOn xdebug.dump_undefinedOffOff xdebug.extended_infoOnOn
xdebug.file_link_format*no value**no value* xdebug.idekeyuser*no value*
xdebug.manual_urlhttp://www.php.nethttp://www.php.net
xdebug.max_nesting_level100100 xdebug.overload_var_dumpOnOn
xdebug.profiler_aggregateOffOff xdebug.profiler_appendOffOff
xdebug.profiler_enableOffOff xdebug.profiler_enable_triggerOffOff
xdebug.profiler_output_dir****** xdebug.profiler_output_name
xdebug_profile.%R::%uxdebug_profile.%R::%u xdebug.remote_autostartOffOff
xdebug.remote_connect_backOffOff xdebug.remote_cookie_expire_time36003600
xdebug.remote_enableOnOn xdebug.remote_handlerdbgpdbgp xdebug.remote_host
localhostlocalhost xdebug.remote_log*no value**no value* xdebug.remote_mode
reqreq xdebug.remote_port90009000 xdebug.screamOffOff
xdebug.show_exception_traceOffOff xdebug.show_local_varsOffOff
xdebug.show_mem_deltaOffOff xdebug.trace_format00 xdebug.trace_options00
xdebug.trace_output_dir****** xdebug.trace_output_nametrace.%ctrace.%c
xdebug.var_display_max_children128128 xdebug.var_display_max_data512512
xdebug.var_display_max_depth33
2011/12/15 Artur Krivtsov <gwartur[@]gmail.com>

> 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/
>

-- 
Best regards,
Artur Krivtsov,
http://wartur.ru/
Received on Wed Dec 14 2011 - 20:35:36 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST