Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Redirect the console output to a file

  • No replies
  • 1 has this problem
  • 46 views
more options

I want to redirect the console output to a file. I tried to use cmd command : firefox > console.txt 2>&1 (https://developer.mozilla.org/en-US/docs/Web/API/Window/dump) and i add console.log("message") in my source code. The message is displayed in the web console but the console.txt file remains empty. do you have any idea about this problem? Is there another way to redirect the console log output to a file?

I want to redirect the console output to a file. I tried to use cmd command : firefox > console.txt 2>&1 (https://developer.mozilla.org/en-US/docs/Web/API/Window/dump) and i add console.log("message") in my source code. The message is displayed in the web console but the console.txt file remains empty. do you have any idea about this problem? Is there another way to redirect the console log output to a file?