New version of the Agavi framework support for NetBeans 7.0

necora-markus:

Released a new version of the Agavi framework support plugin for the shiny new NetBeans 7.0. Still depends on implementation versions of the PHP-plugin, so if something doesn’t work, please let me know.

Prebuilt NBM available here, source code here.

UPDATE: Even newer version available here. Should fix a null pointer exception.

Forcing NetBeans to Use Unix (LF) Line Endings

External Link: Forcing NetBeans to Use Unix (LF) Line Endings

NetBeans usually uses the operating systems default line ending when creating a new file (it establishes this by what the JVM tells it). So for example in Windows it will automatically use CRLF and in Unix it will automatically use LF. This behaviour has its advantages, but sometimes you want to to be specific about the line endings you need.

To do this you can add the following switch to your call to the NetBeans binary. On Windows this would be done on the shortcut by opening its properties and adding the switch at the very end of the Target line.

-J-Dline.separator=LF

Whilst this is handy a proper setting in the preferences of NetBeans would be preferable as it could then easily be backed up and taken from machine to machine. Vote for the issue on the NetBeans bug tracker.

Netbeans and Remote XDebug

To get Netbeans to listen for browser initiated debug sessions please consider the following steps:

  1. Go to Project Properties > Run Configuration > Advanced > Debug URL and choose the Do not open a web browser.  Save.  (you may like to setup Path Mapping, but it works for me without it)
  2. In the projects listing right click on your intended project and choose Debug, which will start Netbeans listening for connections.
  3. In your web browser you can now access your website http://www.example.org?XDEBUG_SESSION_START=netbeans-xdebug
  4. You will now see the debug information appear in the debug log area of Netbeans.

(Para-phrased and expanded upon an answer on StackOverflow)