views:

116

answers:

2

I am using xdebug with eclipse (on OSX). I think I remember reading somewhere that it was possible to link the error output (or the Call Stack) to a text editor (like Textmate). I was wondering if its possible to do the same thing for Eclipse.

EDIT: I found out that what I would like to use is the xdebug.file_link_format setting. For OSX and to open in TextMate, the setting would be: xdebug.file_link_format = "txmt://open?url=file://%f&line=%l"

Any idea how to do this with Eclipse PDT 2.1? I know I could use the file:// protocol, but a) i don't want to set the system wide default for PHP to eclipse and b) this wouldn't link it to the project, just the raw file.

A: 

You can certainly do it with NetBeans. You need to add this line to your php.ini file:

xdebug.remote_enable=On

Finbarr
i have xdebug working already (with remote_enable=On) but I want the nice error reporting that xdebug spits out to my browser to have links to my editor in eclipse.
pocketfullofcheese
A: 

Have a look at http://stackoverflow.com/questions/1738573/easiest-way-to-execute-local-file-from-firefox

I think all options are in there.

jerico.dev