문제

Is there any javascript framework for reporting bugs?

I'd like to be able to get a copy of the web page the user is currently looking at plus maybe a stack trace on the JS, their current browser etc. and post it to my web application so that when I try to debug the application I spend less time trying to recreate the issue.

도움이 되었습니까?

해결책

ExceptionHub is a service that might be what you're looking for. There is some overhead as it wraps the calls to addEventListener, setInterval, setTimeout, etc. with try catch blocks to get stacktraces.

There isn't a way to get a screenshot of the page without using escalated privileges or a browser extension. The canvas element in Mozilla's implementation has a drawWindow function that can render the current window to a canvas element, with that you could post the pixel data.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top