简体   繁体   中英

Enter doesn't submit commands in console at breakpoint

On Firefox 37.0.2 for Linux Mint Rebecca 17.1 (based on Ubuntu 14.04).

When I hit a breakpoint, the console is permanently in multi-line command mode and Enter doesn't submit a command, but opens a new line.

So when I type `console.log("foo")

输入命令

and hit Enter , rather than seeing the output foo I get:

输入打开新行

I've tried putting a semi-colon at the end of the command, pressing every imaginable combination of ctrl + Enter etc. but they all just open a new line.

The console works as expected when I'm not at a breakpoint. This SO answer suggests it shouldn't be a problem.

What's going on?

I could not find a better answer, but closing Firefox and restarting it solved this problem for me. You can then go to the History menu and restore the previous session to get back to where you were.

I'm almost certain this is a bug since Mozilla's own documentation only mentions that to type more than 1 line before executing the input you have to press Shift+Enter instead of just Enter.

This problem seems to have gone away in Firefox 39.0.

So if you're experiencing it, maybe the best thing to do is to upgrade!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM