Opening a local file in Eclipse from the web

Posted by Victor Nicollet on Stack Overflow See other posts from Stack Overflow or by Victor Nicollet
Published on 2010-03-26T09:02:18Z Indexed on 2010/03/26 9:03 UTC
Read the original article Hit count: 607

Filed under:
|
|

Right now, when I notice a problem on a page on my PHP web site, I have to look at the URL, mentally deduce what file is responsible for displaying that page, then navigate the Eclipse PDT file tree to open that file. This is annoying and uses brain power that could have been applied to solving the issue instead.

I would like my PHP web site to display on every page a link that I could click to automatically open the correct file in Eclipse.

I can easily compute the complete absolute path for the file I need to open (for example, open C:/xampp/htdocs/controllers/Foo/Bar.php when visiting /foo/bar), and I can make sure that Eclipse is currently open with the correct project loaded, but I'm stuck on how I can have Firefox/Chrome/IE tell Eclipse to open that specific file.

© Stack Overflow or respective owner

Related posts about php

Related posts about eclipse-pdt