firephp-for-browser-devtools icon indicating copy to clipboard operation
firephp-for-browser-devtools copied to clipboard

File and Line number does not link to file.

Open ErikKrause opened this issue 7 years ago • 2 comments

Hello,

in the devtools console filename and line provide a link to open the file at the given line in source code view, which is very useful if working with a local server. Will this be implemented for the FirePHP pane as well? Would be even more useful if it opened a (configurable) local editor.

Erik

ErikKrause avatar Nov 06 '17 13:11 ErikKrause

Yes. I plan on supporting:

  • the remote viewing of the source file if the Insight library is used (which provides the backend to serve the files) as well as
  • open the file in local editor

I have to investigate how to open file in local editor. Unless devtools has the needed APIs we may need to use runtime.sendNativeMessage() along with a mini PHP/NodeJS server to handle the native messages and run the system command.

Suggestions welcome.

cadorn avatar Nov 07 '17 04:11 cadorn

FF can be already configured to use an external editor. See view_source.editor in about:config Furthermore there is an extension which aims to do this: https://github.com/asamuzaK/withExEditor but this is not very convenient (and doesn't work in devtools)

ErikKrause avatar Nov 07 '17 08:11 ErikKrause