xdebug

Maximum function nesting level of '100' reached, aborting

给你一囗甜甜゛ 提交于 2019-11-30 08:30:09
问题 I want to create a crawler who take the informations of all pages one by one from number 0 to 10 000 000. I don't matter how much time it takes. I just want it works. Here is the error i obtain Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\wamp\www\crawler\index.php on line 25 The line 25 is $htmlstr = (string)$this->curlGet($url); And there is my complete script. Thank you for your help ! header('Content-Type: text/html; charset=utf-8'); ini_set('max_input

How to debug 500 Error in Symfony 2

梦想与她 提交于 2019-11-30 08:23:45
I am struggling with Symfony 2 error reporting because I can't find out what really is happing when a 500 Error is triggered. I have XDebug correctly installed, but it seems like Symfony rules everything. The custom pages just says: Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. That's pretty much funny! Something is broken, but, the fact is that I need to fix my code, but can't know

PHP remote debugging: XDebug can't connect to JetBrains php Storm client

倖福魔咒の 提交于 2019-11-30 07:04:34
问题 i's like to get remote debugging to work with the following software configuration: Win 7 Pro 64bit WAMP Server 2.2 (32bit) incl. Apache 2.2.22, PHP 5.4.3, XDebug php_xdebug-2.2.1-5.4-vc9.dll JetBrains PHPStorm 4.0.3 1.) WAMP is up and running, my site can be found under localhost/fox/ 2.) PHP Storm has a project where there is a mapping between my sourcefiles and the apache alias localhost/fox 2.) I installed the php extension XDebug and added the following lines to my php.ini [xdebug] zend

Settings up xdebug on MAMP PRO

半城伤御伤魂 提交于 2019-11-30 06:13:07
I am trying to set up xdebug on mamp pro with no success. I searched all over the internet, nothing helped me. First I have tried just to uncomment the following line in php.ini: zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" Next, I've tried the wizard: http://xdebug.org/wizard.php Next, I've tried adding these lines to php.ini: xdebug.default_enable=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.remote_autostart=1 Nothing helps. I can't see xdebug in my phpinfo. MAMP

How to add add request parameter to every Angular.js $http request (to start a xdebug session for example)

落花浮王杯 提交于 2019-11-30 05:43:51
问题 My hybrid application is based on AngularJS and uses a php REST api. I would like to debug the php api directly from my Angular app instead to use REST console or Postman. It would save a lot of time especially for POST and PUT requests. In order to do so I would need to add a parameter to each request like so: http://localhost:8000/api/contacts?XDEBUG_SESSION_START=PHPSTORM Can I config $http to do so? 回答1: You can use httpInterceptor for that (official $http documentation contains more info

How can you use php xdebug if you are on NAT behind a firewall?

断了今生、忘了曾经 提交于 2019-11-30 05:19:23
I have the following use case for debugging a PHP application: The developer does have a private IP address The developer can connect only to a limited number of ports from the server, like 80, 8080, 3128, others being limited by the outgoing firewall. Still if the outgoing requests are HTTP he could use a proxy that does not have this limitation. the server machine is fully configurable Is is possible to use xdebug in this circumstance? How? It is possible to establish a VPN but this is not an easy solution so I would prefer a simplified one. sorin The solution I found was to use PuTTY to

Profiling Code on Production

久未见 提交于 2019-11-30 05:18:49
I'm toying around with the idea of implementing something that profiles code on the production server and wanted some best-practice advice. Obviously it's a bad idea to profile ALL requests because of the added overhead so I was looking into some techniques that will randomly invoke the profiler per request. Something like 1 profile per every 10,000 requests. I know there is a way to achieve such a task with Facebook's XHProf Profiler but was hoping for a similar solution using xdebug. So my questions are (assuming xdebug is the profiler): Is this kind of feature even advisable? I'd like to

Xdebug PhpStorm: Waiting for incoming connection with ide key

夙愿已清 提交于 2019-11-30 05:16:17
I've searched a lot for this problem when debugging php using PhpStorm with xdebug, I found 3 or 4 links discussing this problem, but none of them are useful.My Xdebug's version is 2.2.3, and PhpStorm'version is 6.03. I could debug every line step by step except this one $this->link = mysql_connect($this->dbserver, $this->dbuser, $this->dbpass); PhpStorm shows this error:Waiting for incoming connection with ide key "14841". Here are my xdebug configuration: zend_extension="/usr/lib/xdebug.so" xdebug.remote_autostart=1 xdebug.show_local_vars=1 xdebug.dump.GET=* xdebug.dump.POST=* xdebug.dump

Xdebug and No Profiling Output

北慕城南 提交于 2019-11-30 04:29:43
This is a similar problem to XDebug profiling in PHP - can't get output but mine is on windows and I have the full path specified (which solved his problem) I am not getting any output even though I have enabled the profiler. Below is a copy of xdebug setup (I have indented all the options that have been uncommented.) - Please note that xdebug is working fine as Ii have been getting the standard xdebug errors. If it make any difference I am using xampp, cakephp, php 5.3 Any help would be greatly appreciated. [XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" ;xdebug.auto_trace = 0

Xdebug configuration with PHP fastcgi and eclipse?

て烟熏妆下的殇ゞ 提交于 2019-11-30 04:06:14
问题 I have been using eclipse-pdt in conjunction with xdebug and apache without problems, for over one year. Things worked flawlessly and I could do all the interactive debugging I wanted from within eclipse (using my own machine as a server). Now I switched from apache to nginx (and therefore PHP runs now not as an Apache service but as fast-cgi) and I can't find a way to configure eclipse to work nicely with xdebug. I am neither sure if the problem is with xdebug or with eclipse (or both) to be