xdebug

PHPStorm + XDebug Setup Walkthrough

我们两清 提交于 2019-11-27 06:19:20
Up until recently, I've been writing code in PHP (via Notepad++) and debugging by checking the logs in IIS (gotta love that web-platform installer); I've since decided to update to a more efficient code-writing / testing environment, and after playing around for several moments with PHPStorm, decided to purchase it and give it a try. Since then, I have realized that in so far as tutorials and walk-throughs are concerned, PHPStorm is coming up a little short. Having given the manual a glance (RTFM, I know), and come up wanting, I'd like to ask if anyone out there would like to hand hold me

eclipse xdebug session never completes

我的未来我决定 提交于 2019-11-27 05:16:24
问题 I am trying to get xdebug working with eclipse (3.5) / php (on xampp windows 7). I have verified xdebug is enabled in php - I have the fancy output and my phpinfo shows all the xdebug stuff. I have remote debug on, and typed in the lan ip address on my eclipse machine. When I tell eclipse to debug, it launches the browser and passes the debug URL parameters. That looks OK. However, in eclipse debug perspective it shows 'launching myproject' 57% 'waiting for xdebug session'. It sits there

Xdebug for remote server not connecting

百般思念 提交于 2019-11-27 05:04:41
问题 I want a team using different computers to be able to debug PHP on a remote server, but I am having a hard time getting Xdebug to work in NetBeans 7.0.1. I’ve tried many online tips, but to no avail. For the record, I have successfully installed Xdebug locally on a Windows 7 machine running WampServer. So I can debug PHP with breakpoints in NetBeans, provided I set the Project Properties->Run Configuration->Run As property to Local Web Site . However, as stated above my goal is to debug in

PhpStorm debug with Laravel Homestead not working

孤街醉人 提交于 2019-11-27 03:00:44
问题 I'm trying to setup PhpStorm to debug correctly within a Vagrant Homestead environment. Xdebug is correctly installed and I'm running PHP 7.1 After setting a breakpoint in my app the script passes through any breakpoints and I get this message: debug session was finished without being paused It may be caused by path mappings misconfiguration or not synchronized local and remote projects. To figure out the problem check path mappings configuration for 'wedleague.loc' server at PHP|Servers or

XDebug and RESTful server using PHPStorm or POSTman

吃可爱长大的小学妹 提交于 2019-11-27 02:47:33
How can I get a REST client (such as the one built into PHPStorm or POSTman ) to work with XDebug? In my current set-up of XDebug, using PHPStorm and the Bookmarklet provided I'm able to get it working in both Chrome and Firefox - but as soon as I try with POSTman or any other REST client, I can't figure out how to get it started. Cheers. Until http://youtrack.jetbrains.com/issue/WI-17031 will be implemented you can try one of these approaches: Configure your xdebug (by editing php.ini) to attempt to debug every php script ( xdebug.remote_autostart = 1 ) Add xdebug session start parameter to

Xdebug on macOS 10.13 with PHP 7

跟風遠走 提交于 2019-11-27 02:22:03
问题 So macOS High Sierra 10.13 now comes with PHP 7.1. While configuring Apache I also created a new /etc/php.ini from the /etc/php.ini.default file, made sure to check that is was being loaded by PHP after restarting Apache, however the version of Xdebug extension that ships with macOS 10.13 doesn't seem to load or show up when you run phpinfo(); My php.ini is definitely being loaded: $ php -i | grep php.ini Configuration File (php.ini) Path => /etc Loaded Configuration File => /etc/php.ini Here

PhpStorm is not receiving xdebug connections : PhpStorm event log : Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'

扶醉桌前 提交于 2019-11-27 01:49:29
问题 I configured everything for PhpStorm and xdebug to work, I'm running Ubuntu 14.04. the connection back to the IDE is not established, and I get this in the IDE event Log Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])' – Osama Salama 13 mins ago I'll put together configuration values I configured in various places. As I can't find out where is the problem php.ini zend_extension = /usr/lib/php5/20121212/xdebug.so xdebug.remote_enable=1

Remote debugging won't stop at breakpoints

倖福魔咒の 提交于 2019-11-27 00:06:45
问题 I'm having a problem with xdebug not stopping at breakpoints when using remote debugging (everything is fine when running scripts via the command line). It will break at the first line of the program, then exit, not catching any breakpoints. It used to work fine, until I switched over to using MacPorts for Apache and PHP. I've tried re-compiling it several times (with several versions), but no dice. I'm using PHP 5.3.1 and Xdebug 2.1.0-beta3 I've also tried at least 3 different debugging

How to get xdebug var_dump to show full object/array

好久不见. 提交于 2019-11-26 23:14:32
I am using xdebug (php_xdebug-2.1.2-5.3-vc9.dll) on WAMP . When I use var_dump on a large object or variable it does not show the full variable. array 'node' => array 'my_form' => array 'form' => array ... Without xdebug it shows as should be expected. I looked at the documentation but did not see a solution. Does anyone know how I can fix this so xdebug var_dump shows the full object? Michael Berkowski These are configurable variables in php.ini: ; with sane limits xdebug.var_display_max_depth = 10 xdebug.var_display_max_children = 256 xdebug.var_display_max_data = 1024 ; with no limits ;

Will enabling XDebug on a production server make PHP slower?

南笙酒味 提交于 2019-11-26 22:43:45
The title pretty much says it all...is it a bad idea ? I'd like to have the enhanced debug messages that XDebug provides on the server. [edit] Just to make things clear. I'm aware there are security risks involved. Perhaps I should complement my question and give more precise reasons why I would want to do this. Our production server hosts a testing platform also. Sometimes we use it to test things on a environment as close to production as possible. The main thing I'm looking for is using XDebug's enhanced var_dump() . This is not an app server for high traffic apps and performance is not