Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File and Line number does not link to file. #6

Open
ErikKrause opened this issue Nov 6, 2017 · 2 comments
Open

File and Line number does not link to file. #6

ErikKrause opened this issue Nov 6, 2017 · 2 comments

Comments

@ErikKrause
Copy link

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

@cadorn
Copy link
Member

cadorn commented Nov 7, 2017

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.

@ErikKrause
Copy link
Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants