Working with PDT source code in Eclipse

Which Eclipse version?

To comfortably edit PDT source code and execute it, you can use Eclipse for RCP and RAP Developers, which contains some required plugins (Java Development Tools, Plug-in Development Environment, Git Integration, …).

Required plugins

In addition to the plugins bundled with Eclipse RCP, PDT requires other plugins that can be installed via the Help → Install New Software… menu item.

You'll need to add the following software site (you can add them by clicking the Manage button in the Install dialog):

Running and debugging PDT

In order to run (and debug) PDT, you can choose the Run → Debug Configurations… menu item, and add a new Eclipse Application.

You can keep the default settings, but it's very handy to go to the Common tab, and check Debug and Run in the Display in favorites menu checklist (so that you'll be able to launch the debug environment by clicking the Debug or Run icons in the toolbar).

When launching the debug application, a new Eclipse instance will be executed: you can create a new PHP project, and you can place breakpoints and analyze the execution in the Eclipse instance containing the PDT project.

PS: when executing PDT, you may see some validation warnings: you can safely ignore them.

1234is the Eclipse bug ID. In case there's no Eclipse bug associates, use No bug instead of Bug 1234.If your patch is still in progress, to avoid confusion add a [WIP] prefix (eg: [WIP] No bug - This is an example).

Descriptionis the main title of the patch.

Notesare optional notes about the patch.

Change-Id: I0000000000000000000000000000000000000000This blank Change-Id line must be added as-is in the commit message.After pushing successfully your patch to Gerrit, Gerrit will create a unique and final Change-Id to identify your patch.If later you need to update the patch, use the gerrit link added to your bug report to retrieve the Change-Id value and replace the blank identifier I0000000000000000000000000000000000000000 by the Change-Id affected to your patch.

Your Nameis your real name.

your-email@example.comis your email address.

PS: the commit author and submitter usually have the same value as the Signed-off-by.

By pushing the commit, you'll create - or update - a new Gerrit patch depending on the Change-Id value of your commit message.
The link to view it should be automatically added to your bug report (the link will look like https://git.eclipse.org/r/#/c/112773)