| LinkedIn Groups | | | | | | | November 1, 2011 | New Discussions (12) PHP vs. JAVA Started by Derek Anderson, Business Technology Consultant If you look at the PHP "maturing" trend you'le notice that PHP started off as procedural, then semi-OOP to a fully flegde OOP. Those... more » By Sarel Coetzer, GIS Developer at Medical Reseach Council | | | Like · Flag | Need logic for php chat application with timer Started by ilaya selvaraj, PHP Programmer One problem you will need to overcome is that HTTP is stateless. This means that web servers have a time-out and will kill a message that... more » By Ian Hobson, Independent Computer Software Professional | | | Like · Flag | PHP/LAMP Developer Job opening Started by Timothy Odom, Chief Operations Officer at CHARGED.fm New York Web Development Company looking for developers excited about creating new web technologies. Qualified candidates will have at... more » By Timothy Odom, Chief Operations Officer at CHARGED.fm | | | Like · Flag | PhpStorm & a working XDebug-debugger on Mac: anybody using this set-up ... ? Started by Wout Daelemans, Consultant It looks like you won't need all this info but just to start from the beginning for the benefit of all. A few things to check on. Make sure that in the phpinfo (a script with phpinfo() or php -i on the command line) you see xdebug just below the first table of information. E.g., This program makes use of the Zend Scripting Language Engine: Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans If you don't see this then xdebug isn't installed properly. You can find the info to install it easily by going to http://xdebug.org/find-binary.php and pasting the output of phpinfo into the box. Next thing to do is to make sure that you have at least the following settings in your php.ini: [xdebug] xdebug.idekey="xdebug-phpstorm" xdebug.remote_enable=1 The xdebug.idekey can be anything as long as its the same in PhpStorm. In my case xdebug.remote_enable was commented out (it had a semi colon in front of it) so that's why it wasn't working. The IDE key can be set in PhpStorm by going to: Preferences/PHP/Debug/Xdebug proxy/Ide key. You may or may not have to do this. I found that on my mac the idekey was empty. Where as, on my windows box the idekey was set to xdebug-netbeans. The next thing is to make sure that your user-agent is sending the XDEBUG_SESSION cookie and it has the idekey you set above. In chrome I use the "xdebug helper" extension to easily set this cookie. After installing it you can set the idekey in the options (window/extensions, click options for the xdebug helper entry). Note that the debug icon for this will only appear if you have the domain set in "domains" which can either be a regular expression or the actual domain. In firefox you can use "easy xdebug" which will give you an icon to click to add the cookie. Again, you can set the idekey in the options for the extension. A dead simple way to test it out w/out any extensions is just to add the parameter to the query string (?XDEBUG_SESSION=xdebug-phpstorm). Another thing to check is that you have the correct path mappings (or are not using them at all). Go to Preferences/PHP/Servers in PhpStorm. Click on the server that you are using and take a look at the "Use path mappings ..." check box. If you're running on your local box you're likely going to want that unchecked. Usually the path requested is a one to one mapping on your local box and so you don't need to set up any special mappings. If your server is running remotely then you'll want to set the paths appropriately. For example, I might have files on my local at C:/mysite/site/www/htdocs and on the server at /Users/Seth/Sites/mysite/site/www/htdocs. So the "File/directory" column in the PhpStorm dialog would have "C:/mysite/site/www/htdocs/" and the absolute path on server would have "/Users/Seth/Sites/mysite/site/www/htdocs" Let me know if this works out for you. By Seth Wessitsh, Computer Software Professional | | | Like · Flag | Why Symfony2 community is resistant to LinkedIn groups? Started by Fernando Javier Martin, Sr. PHP Developer at Clarin Global - CMD I wonder why that happens, in particular with SF2 developers. For that matter I've started a discussion (http://lnkd.in/zDnuMk) in the... more » By Fernando Javier Martin, Sr. PHP Developer at Clarin Global - CMD | | | Like · Flag | Job Discussions (11) | | | Don't want to receive email notifications? Adjust your message settings. Stop inappropriate content the moment it is posted. Send me an email for each new discussion » Do you know anybody that might like this group? Invite others to join » LinkedIn values your privacy. At no time has LinkedIn made your email address available to any other LinkedIn user without your permission. © 2011, LinkedIn Corporation. | |
No comments:
Post a Comment