Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » support for debug.file_link_format
support for debug.file_link_format [message #74876] Fri, 04 July 2008 10:09 Go to next message
Sean Burlington is currently offline Sean BurlingtonFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I see that xdebug has the option to generate links in error pages
with the filename and line number of the error

http://xdebug.org/docs/all_settings

debug.file_link_format

An example format might look like:

myide://%f@%l

Is there any way to use this with eclipse?

If it can't be done directly - is there any way to interact with eclipse
from another program (so that the xdebug link could trigger a helper
program)

I've been looking for this for a while and not found anything so I'm not
expecting easy answers at this point ...

--

Sean
Re: support for debug.file_link_format [message #74912 is a reply to message #74876] Fri, 04 July 2008 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Hi Sean, I see that this feature is only available in XDebug 2.1 which
is not released yet, but I would be interested in any feedback on how
PDT gets on with prerelease versions of xdebug 2.1

I don't know if it is possible to do what you want with eclipse though.
I think what is required is the ability to either launch eclipse and
load that file into an appropriate editor or to signal to an existing
eclipse app to do the same. One interesting issue would be what would
happen when you have multiple eclipse instances running (which I tend to
do when working on multiple projects).

Dave Kelsey

Sean Burlington wrote:
> Hi,
>
> I see that xdebug has the option to generate links in error pages with
> the filename and line number of the error
>
> http://xdebug.org/docs/all_settings
>
> debug.file_link_format
>
> An example format might look like:
>
> myide://%f@%l
>
> Is there any way to use this with eclipse?
>
> If it can't be done directly - is there any way to interact with eclipse
> from another program (so that the xdebug link could trigger a helper
> program)
>
> I've been looking for this for a while and not found anything so I'm not
> expecting easy answers at this point ...
>
Re: support for debug.file_link_format [message #74923 is a reply to message #74912] Fri, 04 July 2008 18:34 Go to previous messageGo to next message
Sean Burlington is currently offline Sean BurlingtonFriend
Messages: 18
Registered: July 2009
Junior Member
Dave wrote:
> Hi Sean, I see that this feature is only available in XDebug 2.1 which
> is not released yet, but I would be interested in any feedback on how
> PDT gets on with prerelease versions of xdebug 2.1

would you expect to see problems - it doesn't look like a big change?


> I don't know if it is possible to do what you want with eclipse though.
> I think what is required is the ability to either launch eclipse and
> load that file into an appropriate editor or to signal to an existing
> eclipse app to do the same.

it's the second option that I'd be really keen on - its when I'm
developing in eclipse - I get an error Xdebug prints the file name and
line number - I have to manually navigate to this point.

I don't mind if this is limited to working on one - manually configured
project at a time ...

PDT can find the file and line number when it's debugging a program



> One interesting issue would be what would
> happen when you have multiple eclipse instances running (which I tend to
> do when working on multiple projects).
>

one thought I had is whether it might help to have a small program that
starts eclipse and keeps a communication channel open - this program
could receive the link from the OS and pass it to eclipse....

Sorry - a bit vague (I'm a web developer and this is getting into OS
territory )

Fireclipse is doing something along these lines for firebug integration


http://fireclipse.svn.sourceforge.net/viewvc/*checkout*/fire clipse/trunk/FireclipseDocumentation/screenshots.htm
http://www.almaden.ibm.com/u/bartonjj/fireclipse/index.html

But those install instructions look like a bit of a nightmare at the
moment ;-)



--

Sean
Re: support for debug.file_link_format [message #75028 is a reply to message #74923] Sun, 06 July 2008 13:22 Go to previous message
Eclipse UserFriend
Originally posted by: dkel50.hotnospmail.com

Sean Burlington wrote:
> Dave wrote:
>> Hi Sean, I see that this feature is only available in XDebug 2.1 which
>> is not released yet, but I would be interested in any feedback on how
>> PDT gets on with prerelease versions of xdebug 2.1
>
> would you expect to see problems - it doesn't look like a big change?
>
>

Well 2.0.2 to 2.0.3 was a small change, yet it was enough to stop PDT
from working with XDebug. Any feedback from people trying 2.1
pre-release code is always useful.

>> I don't know if it is possible to do what you want with eclipse
>> though. I think what is required is the ability to either launch
>> eclipse and load that file into an appropriate editor or to signal to
>> an existing eclipse app to do the same.
>
> it's the second option that I'd be really keen on - its when I'm
> developing in eclipse - I get an error Xdebug prints the file name and
> line number - I have to manually navigate to this point.
>
> I don't mind if this is limited to working on one - manually configured
> project at a time ...
>
> PDT can find the file and line number when it's debugging a program
>
>
>
A Solution may be possible. If XDebug supports exception breakpoints
(which would include errors) and I think it does, PDT could be enhanced
to register these breakpoints with xdebug and when an error occurs to
break at the line the error occurred and PDT to display as though it was
a normal breakpoint. Would this be helpful ? The other solution doesn't
sound like something that the eclipse platform would support (But I
could be wrong on that).

>> One interesting issue would be what would happen when you have
>> multiple eclipse instances running (which I tend to do when working on
>> multiple projects).
>>
>
> one thought I had is whether it might help to have a small program that
> starts eclipse and keeps a communication channel open - this program
> could receive the link from the OS and pass it to eclipse....
>
> Sorry - a bit vague (I'm a web developer and this is getting into OS
> territory )
>
> Fireclipse is doing something along these lines for firebug integration
>
>
> http://fireclipse.svn.sourceforge.net/viewvc/*checkout*/fire clipse/trunk/FireclipseDocumentation/screenshots.htm
>
> http://www.almaden.ibm.com/u/bartonjj/fireclipse/index.html
>
> But those install instructions look like a bit of a nightmare at the
> moment ;-)
>
>
>
Previous Topic:SOS,OLE Exception
Next Topic:Operation lockout after starting multiple operations
Goto Forum:
  


Current Time: Fri Apr 19 16:59:15 GMT 2024

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

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

Back to the top