문제

I'm trying to use the debugger; statement to debug JS in Firefox, but YUI Compressor is interfering.

A complete pause of Firefox does not occur in uncompressed files, but in compressed files. For debugging, I want to use the debugger; statement, since setting breakpoints manually is impossible when YUI puts everything neatly into a single line.

Now, YUI remvoes the debugger; statement from source.

Is there a way to preserve the debugger; statement?

도움이 되었습니까?

해결책

Yes, you can use:

eval('debugger;');

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