Reputation: 1121
I'm trying to debug a malicious script that's injecting debugger statements to prevent me from debugging it. The script injects the debugger statement into the dom somehow thus not having any origin.
The only ways to prevent the debugger statement from running is either through black boxing or deactivating all breakpoints. Both methods do not cover this case.
I want to be able to debug DOM manipulations but ignore any other call to the debugger.
Upvotes: 1
Views: 1363
Reputation: 25907
Have you tried blackboxing the script? While stepping through code, blackboxing just ignores the scripts that you specify. So it seems like that would prevent you from constantly pausing on the malicious debugger statements.
P.S. @MenzoWijmenga mentioned that deactivating all breakpoints doesn't work in this case, but for anyone else where that would be an OK solution see this related answer.
Upvotes: 1