Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug not finding classes
xdebug not finding classes [message #1754161] Tue, 14 February 2017 21:21 Go to next message
Jonathan Mason is currently offline Jonathan MasonFriend
Messages: 3
Registered: February 2017
Junior Member
I had everything working perfectly in Ubuntu 14.04 and Eclipse Mars.1 Release (4.5.1), but I'm trying to rebuild under ubuntu 16.04 and Neon.2 Release (4.6.2) on PHP 5.6.

I'm able to compile xdebug and insert the info into php.ini for the xdebug:
zend_extension = /usr/lib/php/20131226/xdebug.so
xdebug.remote_log="/tmp/xdebug.log"
xdebug.profiler_enable = 1
xdebug.remote_enable=on
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.idekey=phpstorm-xdebu

Neon sees it, but when I try to run my project in debug mode I get:

PHP Fatal error: Class 'SimpleXMLElement' not found in /home/user/git/project/file.php on line 14

I get other common classes not found as well. But everything works fine when I run it in the browser.
Re: xdebug not finding classes [message #1754221 is a reply to message #1754161] Wed, 15 February 2017 14:00 Go to previous messageGo to next message
Jonathan Mason is currently offline Jonathan MasonFriend
Messages: 3
Registered: February 2017
Junior Member
I also found debug works in eclipse if I hit the page in the local browser. "http://localhost/file.php" opens the PHP Debugger in Eclipse. Sort of cool, but annoying at the same time. That could get me by for a bit, but I would really like to get this working in Eclipse by itself.
Re: xdebug not finding classes [message #1754242 is a reply to message #1754221] Wed, 15 February 2017 16:24 Go to previous message
Jonathan Mason is currently offline Jonathan MasonFriend
Messages: 3
Registered: February 2017
Junior Member
Figured it out. I had to update the CLI /etc/php/5.6/cli/php.ini as well with the "zend_extension = /usr/lib/php/20131226/xdebug.so" value.
Previous Topic:xdebug exclude wordpress core
Next Topic:Eclipse hangs 'Updating project <project name>'
Goto Forum:
  


Current Time: Mon Nov 19 15:34:21 GMT 2018

Powered by FUDForum. Page generated in 0.02774 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top