★ wanayoo — archive 1999 https://github.com/firefox-devtools/debugger/issues/8228Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable halting on 'debugger' statements #8228

Closed
SebastianZ opened this issue Jun 6, 2019 · 6 comments
Closed

Allow to disable halting on 'debugger' statements #8228

SebastianZ opened this issue Jun 6, 2019 · 6 comments
Labels

Comments

@SebastianZ
Copy link

@SebastianZ SebastianZ commented Jun 6, 2019

There are some websites that use dynamically generated debugger statements to protect their website from being inspected, e.g. by using code like setInterval(function() { eval('debugger;'); }, 500);.

Also, there are cases in which you don't want to stop on debugger statements you've set in your code and just skip over them.

For those cases there should be an option to simply skip over those statements and continue the execution.

See also the related issue #828, where this feature was already mentioned.

Sebastian

@schnippe
Copy link

@schnippe schnippe commented Jul 4, 2019 •

I did a binary patch of the js debugger statement in libxul.so/dll to something else.

strings -t d libxul.so.prePatch | egrep "^[0-9]* (debugger|padStart)$"| grep padStart -A 0 -B 1 | head -n 1
printf "dbbggger" > tmp
dd if=tmp of=libxul.so obs=1 seek=97612653 conv=notrunc

@schnippe
Copy link

@schnippe schnippe commented Jul 5, 2019

As a one liner:

cp -n libxul.so{,.prePatch}; dd of=libxul.so if=<(printf "dbbbgggr") obs=1 conv=notrunc seek=$(strings -t d libxul.so | egrep "^[0-9]* (debugger|padStart)$"| grep padStart -A 0 -B 1 | head -n 1|cut -d" " -f1); diff <(xxd libxul.so) <(xxd libxul.so.prePatch)
< 05d17360: 6179 0064 6179 5065 7269 6f64 0064 6262 ay.dayPeriod.dbb
< 05d17370: 6267 6767 7200 6465 6369 6d61 6c00 6465 bgggr.decimal.de
--
> 05d17360: 6179 0064 6179 5065 7269 6f64 0064 6562 ay.dayPeriod.deb
> 05d17370: 7567 6765 7200 6465 6369 6d61 6c00 6465 ugger.decimal.de

This will probably disturb Widevine DRM.

@jasonLaster :
A simple "Disable debugger Statement", possibly in about:config would be very helpfull.

The js in the stackoverflow post @SebastianZ mentioned, is crashing or lagging my developer tools windows and the current tab, in so far we are talking about a kind of denial of service bug.

@loganfsmyth
Copy link
Contributor

@loganfsmyth loganfsmyth commented Jul 9, 2020

@loganfsmyth loganfsmyth closed this Jul 9, 2020
@jonluca
Copy link

@jonluca jonluca commented Nov 22, 2020

It looks like conversation on this has stalled - as a web security researcher, this would be a great feature.

@arizvisa
Copy link

@arizvisa arizvisa commented Nov 25, 2020

Yep. Agreed. Not sure why this problem has lasted 5 years either.

@SebastianZ
Copy link
Author

@SebastianZ SebastianZ commented Nov 25, 2020

The development of the Debugger doesn't happen here anymore. As @loganfsmyth pointed out three comments above, you should follow https://bugzil.la/1578220.

Also, please avoid "me too" comments there and instead vote for it or provide feedback that helps implementing that feature.

Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants