Debugging LWP with mitmproxy

Are you using an LWP app, and trying to debug it? My personal preferences is using mitmproxy.

To get LWP to use mitmproxy, set the following ENV variables:

PERL_LWP_ENV_PROXY=1 HTTPS_PROXY=’http://localhost:8080/’ ./script/myapp

Note, this also works for apps using Mojo::UserAgent, except you don’t need the first ENV variable.

Don’t animate scrollTo of the body on iOS.

Animate body.offsetTop and body.offsetLeft works great on the desktop, but  is hugely buggy on MobileSafari. Instead, make a viewport div that fills the screen, and animate the offset on that.

I hope this helps someone, as I spent 3 hours figuring it out.

Copyright © marcus ramberg
nordaaker

Built on Notes Blog Core
Powered by WordPress