Questions tagged [xdebug-profiler]

52 questions
1
vote
1 answer

php-fpm access log request time and xdebug timings doesn't match

php-fpm access log request time and xdebug timings doesn't match. Why does xdebug profiling shows 100ms for request and php-fpm access log showing 700ms+ 7x or even more difference? Is xdebug missing/skipping something on the way or does fpm is…
Somebody
  • 9,316
  • 26
  • 94
  • 142
1
vote
1 answer

not able to install php-devel in aws centos ec2 instance for php version 5.6.22

I was trying to install php-devel using the command 'sudo yum install php-devel. I am getting error like this --> Processing Conflict: php56-cli-5.6.22-1.125.amzn1.x86_64 conflicts php-cli < 5.5.22-1.98 --> Processing Conflict:…
1
vote
0 answers

Understanding XDebug Trace Output for bizarre memory consumed by a script

What is happening is that at random times, a webpage throws "Allowed memory exhausted" error in apache logs. I have the xdebug trace of both the times, when the issue occurs and when it runs normally. When I am comparing the trace files, its…
Charanjeet Kaur
  • 1,199
  • 3
  • 14
  • 27
1
vote
1 answer

XDebug profiling not working in windows command line

I'm struggling with xDebug profiling in WAMP. It works perfectly with browsers, I'm getting cachegrind.out files, but no luck if I try to execute a php script with command line. No cachegrind files are being generated. Here is my php.ini…
0
votes
0 answers

Error while installing Xdebug on MAC Intel

I'm trying to install Xdebug on my Mac. I'm getting the same error when using pecl install xdebug OR arch -x86_64 sudo pecl install xdebug I've tried to re0install PHP but it's not working for me. Password: downloading xdebug-3.2.0.tgz ... Starting…
0
votes
1 answer

How to limit error display to certain users or IPs

Currently when there is a notice or warning, it is displayed on our web pages. We would like this to be available only to some IPs or other criteria for our developers Is there a way to render the error log stack only to certain IP? Thanks
MastaP
  • 109
  • 4
0
votes
0 answers

How can we print the visited URL to error_log

We would like the error-log to include the URL (uri) of the original page called by the visitor. A user visits a web page (URL). The page is generated by multiple PHP scripts One of the scripts triggers an error In the logs, I see the script name…
MastaP
  • 109
  • 4
0
votes
1 answer

Why Xdebug 3 profiler triggers in CLI but not in Apache?

I can trigger a PHP debug session (for both CLI and Apache) but when trying to profile it is working ONLY when in CLI mode and not under Apache2. Here is my Xdebug configuration…
Alex
  • 5,510
  • 8
  • 35
  • 54
0
votes
1 answer

PHP: How to make INVOKING internal functions faster

I am trying to optimize a function that is called 560x during the execution of a request. The function is this (some info redacted): function foo($text) { if (preg_match('/[`"]/', $text)) { throw new Exception("very detailed error"); …
Moe Sanjaq
  • 25
  • 6
0
votes
2 answers

Tried to install xdebug there is no zend_extension in php.ini file

I tried to install xdebug in windows 10. There is no zend_extension in php.ini file. I followed this way: Download php_xdebug-2.9.5-7.3-vc15-x86_64.dll Move the downloaded file to Edit C:\xampp\php\php.ini and add the line. but I couldn't find…
0
votes
1 answer

How to stop Xdebug to stop debugging itself?

I'm using Xdebug with Webgrind. If I use below settings in php.ini, eveything works fine: zend_extension = /usr/lib/php/20151012/xdebug.so xdebug.profiler_enable_trigger = 1 xdebug.profiler_output_dir = /var/www/html/xdebug If I open webgrind by…
Axel
  • 113
  • 3
0
votes
1 answer

How should I make Xdebug run for only CLI php not for UI

I want to set Xdebug configuration as where it should work for just CLI not for browser. The reason is I want to test this tool for CLI only. Below is the xdebug.ini #this line will be added automatically zend_extension =…
Nikhil Joshi
  • 386
  • 2
  • 18
0
votes
1 answer
0
votes
1 answer

Results of a simple execution time check contradict Xdebug profiling results

I have a very expensive method removeColumns(...), that in addition gets called multiple times. So I want to increase its performance. To analyze the optimization results I use two tools: (1) the Xdebug Profiler with Webgrind and (2) a simple…
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

Gearman and xdebug

I have something that I don't quite understand with the library and debugging it - having run xdebug profiling on the CLI gearman task it states that it runs for a total of 5.5 seconds as a result of xdebug's cachegrind file. What I have is a code…
Daniel Protopopov
  • 6,778
  • 3
  • 23
  • 39