最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - IE11's F12 developer tools lack option to keep console on navigation - Stack Overflow

programmeradmin2浏览0评论

Trying to debug a problem that's IE-11 specific, I would like to see the console messages logged when a certain control is clicked. But the control refreshes the page, which makes F12 tools automatically clear the console, so whatever is logged just before that, I don't get to see!

Past versions of IE had an option to keep the console contents on navigation. Is this option available in IE11? If so, where is it? If not, is there some other way to view the console that doesn't immediately discard the message I want to see?

Trying to debug a problem that's IE-11 specific, I would like to see the console messages logged when a certain control is clicked. But the control refreshes the page, which makes F12 tools automatically clear the console, so whatever is logged just before that, I don't get to see!

Past versions of IE had an option to keep the console contents on navigation. Is this option available in IE11? If so, where is it? If not, is there some other way to view the console that doesn't immediately discard the message I want to see?

Share Improve this question asked Mar 12, 2014 at 18:15 Andre GuirardAndre Guirard 7204 silver badges7 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 6

In with the latest F12 update to IE11 (that came as part of the Win8.1 Update) there is now a button to disable "Clear on Navigate"

Additionally, you can enable IE to record messages in the Console at all times instead of only when the Console is open.

For all the changes to the IE11 F12 dev tools see: http://support.microsoft./kb/2929437

Ran into this and I didn't find a good solution, but I found a hacked one that worked well enough for me to debug.

Use window.onbeforeunload to pop up a window so you can at least see the values before they are purged.

See: Prompting and preventing user from navigating away/closing a page

发布评论

评论列表(0)

  1. 暂无评论