본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How logging console.log from javascript (F12) to file ?

  • 7 답장
  • 2 이 문제를 만남
  • 18 보기
  • 최종 답변자: cor-el

more options

I'm developed some program with localhost and i want to know Firefox can logging console.log() from javascript like Chrome --enable-logging that can log console.log() to file output without modify javascript code ?

I'm developed some program with localhost and i want to know Firefox can logging console.log() from javascript like Chrome --enable-logging that can log console.log() to file output without modify javascript code ?

글쓴이 TaeCPE 수정일시

모든 댓글 (7)

more options

This was discussed years ago, but to the best of my knowledge, it was never added. It's a good idea though.

more options

Hello, I don't now if is complete answer to your question but for analyze HTTP request you can use Save all as HAR. Woow! Googling a little I found something interesting I don't know about this before but helping others actually helps yourself :)

https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging Have a nice day

글쓴이 AnnaSycamore 수정일시

more options

Dear Branton,

Dose firebug can use in current version firefox ? But as i read in that discussion that tell me to copy by hand.

more options

Dear Anna,

Yeah I had use this but it’s logging only http activity not console.log from JavaScript or I wrong ?

more options

Firebug was a spectacular extension, but it's no longer compatible with Firefox Quantum, so you can't use it anymore. I don't think it had the ability to save the log to a file either to be honest.

The Firebug project isn't around anymore though. I believe that the advanced features that Firebug had were moved into the builtin Firefox developer tools.

more options

A personal recommendation : Use Visual Studio Code It has IntelliSense and debugging tools for Javascript too It's an extraordinary editor with many features for a great variety of scripting languages. In my humble opinion offer more than Sublime Text and is completely free. Now, returning to your question: For Firefox I found this:

A suggestion to use right click in console panel, save your object as a local variable and copy it to your favorite editor I try it but don't  work for me! 

Another tool http://bgrins.github.io/devtools-snippets/#console-save see console.save It work but seems a little outdated to me. And for mobile and web app remote debugging I found this tool Jsconsole https://jsconsole.com/ A little tutorial here: https://www.youtube.com/watch?v=BEo8oJYey-M Hope this help, Have a nice day,

more options