Eclipse PDT Zend Debugger not working with Mac OSX Lion - php

I am using Eclipse with below configuration on Mac
Eclipse SDK
Version: 3.7.0
Build id: I20110613-1736
...
PHP Development Tools (PDT) SDK Feature 3.0.0.v20110516-1100
...
Zend Debugger Feature 5.3.18.v20110322
It was working perfectly fine till I had Mac Snow Leopard but as soon as I upgraded to Mac Lion, Eclipse has stopped encountering any breakpoints and PHP web page execution goes till end and terminates.
Nothing has changed after that I tried to update the eclipse/pdt/zend debugger but did not find any updates.
Any help will be appreciated.

I had the same problem when trying to get the debugger to work on Eclipse in OSX Lion.
Eventually gave up and tried another IDE, Netbeans.
Hope you find a solution

Related

Debug PHP on Mac

I use Visual Studio Code IDE on a Mac, and the MAMP stack to develop a website with PHP.
I want to debug the PHP.
I saw this post about debugging PHP with the visual studio code extension: php-debug.
I installed it in my visual studio code but I see that I need to download Xdebug for it to work.
I see on the Xdebug website that it has no download files for Mac OS X.
However, some PHPdebuggers for mac are Xdebug clients for mac. As shown here.
Does this mean that I can somehow download Xdebug for mac OS X so that my Visual Studio Code php-debug extension works?
If so how?
If not, what is my next best option? - Can I use Visual Studio Code IDE to develop with and a completely separate tool to debug PHP with? In that workflow, would I be just running the site in the browser and the third party tool stops on the breakpoints?
I downloaded codebug for mac, and opened my project in it, and put break points on the code, then ran my website locally. The code did not stop on the break points. What was I missing?
Thanks.
The route I took is upgrading to MAMP PRO. It may be possible to do it with MAMP (non-pro) if you do a bit more setup work for Xdebug.
Upgraded to MAMP PRO and adapted this tutorial for Visual Studio Code. In Visual Studio Code install php-debug, and in MAMP PRO under the PHP tab check the checkbox to debug with Xdebug. Then in Visual Studio Code in the debug view, click the gear icon and choose PHP. This creates a launch.json file. Save the file without changing any defaults, unless you know your xdebug is on a different port. Then just press the play button in the debugger in Visual Studio Code, enter in some breakpoints into the PHP code, and browse to the website. The debugger should stop the execution on the breakpoints.

PHP Development tool for eclipse not working on Windows 7 64bit

I just downloaded PHP Development tools for eclipse and I cant open it, it opens an alert window:
a java runtime environment jre or java development kit jdk must
be available in order to run eclipse for PHP-developers
I installed both jre and jdk and I still get the same alert message.
I have Windows 7 ultimate 64bit running on my computer.
Try this http://www.eclipse.org/forums/index.php/t/288821/ or http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Windows_Example
That might solve it.
please install jreX86, unstall jre64. PHP Development tool(eclipse-php-3.0.2.v20120611144) is

xDebug stability problems

I'm running eclipse PDT on a xubuntu 10.9 VM, using xdebug to remote debug PHP 5.3.
I have been having a number of issues over the last 6 months, things like:
Debugger stops responding to breakpoints after being dormant for 20+ minutes.
Debugger will exit suddenly with the fatal error "unexpected termination". Requires eclipse to be restarted to debug again.
Non fatal errors will pop up, I possibly think this is due to modifying code during execution.
Is this an issue that can be fixed by upgrading or switching to Zen? Its really frustrating compared to using PyDev or Java debuggers.
Is anyone else experiencing this same sort of issue?
With Eclipse, xdebug is sometimes a little unstable. Here, I use Zend Studio with Zend Debugger and xdebug. Everything works fine.
About breakpoints stops, I got a issue too. The only way to control this was use the Zend Toolbar to call debugger from Firefox/IE.
I know people that works fine with Netbeans + xdebug, too.
Try to download and install Zend Debugger and configure your Eclipse to work with it. Eclipse Helios has many improvements around it - try it if you use a older Eclipse version.

Using XDebug for Drupal 6.14 on Snow Leopard?

Just wondering if you anybody has had much luck getting XDebug working for Drupal 6.14 on Snow Leopard?
I noticed that Snow Leopard seems to come with php 5.3 which some people say should work with Drupal 6.14, though I haven't had any luck.
After that failed, I tried installing php 5.2 using macports (checking out from CVS at a previous revision number). This works fine for php. However, I have had no such luck getting XDebug going.
Any thoughts???
Thanks!
If xdebug is enabled it should show up if you execute a phpinfo();. After xdebug is configured properly you can connect to it using Netbeans. Download the php version here: NetBeans Download. You will have to create a project and point netbeans to your Drupal install. After that you can set breakpoints and press run.
I created a step by step instruction on how to install and enable Xdebug with Netbeans:
http://lucwollants.wordpress.com/2010/10/10/xdebug-and-snow-leopard-more-cake/
Hope this can also help!

Debugging PHP on NetBeans 6.8 without Apache

Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server?
After I press CTRL+F5 im getting 404 not found error.
As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfish is similiar developer server, so why Im getting 404?
Thanks
Darek
From Netbeans page.
To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the NetBeans wiki on XDebug and/or ask the community at users#php.netbeans.org.
I hope it helps

Categories