wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes setting up IDE to contribute to PHP/PECL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "setting up IDE to contribute to PHP/PECL" Watch "setting up IDE to contribute to PHP/PECL" New topic
Author

setting up IDE to contribute to PHP/PECL

Tom Fillmore
Greenhorn

Joined: Nov 24, 2009
Posts: 3
It's been a very long time since I did much C development and I'm trying to contribute to a PECL extension for PHP. PHP and the PECL extensions are written in C and I'd like to set up my dev environment so that I can use a nice IDE (like Eclipse) and debug my code, stepping through it within a nice GUI. I'm hoping to develop on a linux box (Ubuntu 10) rather than Windows.

The main issue I have is that I don't know how to configure Eclipse (with CDT) so that it runs the entire process: configure/make/make install and then allows me to step through my code within the Eclipse GUI IDE. I have managed to edit files and then build from the command line and then use GDB to step through the code, but that's *REALLY* tedious.

Also, the PHP source codebase is quite large and takes several minutes to build. I'm hoping I might be able to limit the build to just one particular extension rather than rebuilding the whole things.

Lastly, I'd like to avoid installing the new, possibly broken, code in order to run it. Unless I'm mistaken, the build process results in a binary being constructed in the source directory and I'd like to debug using that new binary before I bother to install it on my system.

Sorry if these questions seem really basic. Like I said, it's been awhile and I'm hoping to get back on the horse quickly.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37902
    
  22
Don't know. Sorry. I'll try moving this thread to the IDEs forum, and we'll see whether anybody there knows.
Tom Fillmore
Greenhorn

Joined: Nov 24, 2009
Posts: 3
Campbell Ritchie wrote:Don't know. Sorry. I'll try moving this thread to the IDEs forum, and we'll see whether anybody there knows.


Thanks! I've made some progress and have Eclipse w/ CDT stepping through the code. I cannot, however get my PECL extension to compile as part of the php project.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting up IDE to contribute to PHP/PECL
 
Similar Threads
Is Eclipse really this hard? And how did it get so popular?
Using Eclipse for Web App
I am trying to get x-debug to debug in eclipse
jar needs adding to Ant classpath after every startup
Professional Projects