[xdebug-general] Problem - Wincachegrind Parser error Current instance is NULL

From: Miguel Coimbra <miguel.e.coimbra[@]gmail.com>
Date: Wed, 10 Dec 2014 22:57:13 +0000

Dear Sir or Madam,

I'm getting an error when trying to use the output of Xdebug on
Windows, I hope you will be able to help me.

I am currently trying to get the Xdebug cachegrind.out file to
open in Wincachegrind. However, when I try to open it in that
program, I get the following error:

[image: Inline images 1]

This is the script I'm executing in PHP:

error_log("[XDEBUG] - stack trace state: " . xdebug_is_enabled(), 0);
xdebug_start_trace('c:/xdebug_main');
xdebug_start_code_coverage();
/* My projects' functions execute here... */

include elgg_get_plugins_path() . 'wac/pages/__home.php';

error_log("Code coverage: " . var_dump(xdebug_stop_code_coverage()), 0);
xdebug_stop_trace();return true;

I have two problems. First, *xdebug_stop_code_coverage* is printing
nothing, which does not make sense to me because I execute quite a
number of functions between the start and stop of the code coverage.
Second, the generated cachegrind.outXXXX file, when given to Wincachegrind,
is producing that parser error that I show above.

This is my php.ini configuration regarding xdebug:

zend_extension = C:\php\ext\php_xdebug-2.2.6-5.5-vc11.dll
xdebug.profiler_enable=On
xdebug.profiler_output_dir="c:\xdebug_traces"
zend.enable_gc = On

I hope that you may be able to enlighten me on what is triggering these
errors.

Thanks for your time,

My best regards,

Miguel E. Coimbra
Email: miguel.e.coimbra[@]gmail.com <miguel.e.coimbra[@]ist.utl.pt>
Mobile: +351 96 91 63 002
Skype: miguel.e.coimbra

wincachegrind_error.PNG
Received on Wed Dec 10 2014 - 22:57:14 GMT

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