Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Mobile web debugging
Search
Gregers Rygg
October 20, 2011
Programming
2
130
Mobile web debugging
My tools and tricks to develop for the mobile web
Gregers Rygg
October 20, 2011
Tweet
Share
Other Decks in Programming
See All in Programming
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
180
AI時代のUIはどこへ行く?
yusukebe
21
9.8k
iOSDC.pdf
chronos2500
2
530
Reactをクライアントで使わない
yusukebe
7
5.4k
奥深くて厄介な「改行」と仲良くなる20分
oguemon
2
640
開発者への寄付をアプリ内課金として実装する時の気の使いどころ
ski
0
130
Model Pollution
hschwentner
1
170
Deep Dive into Kotlin Flow
jmatsu
1
420
プロダクト開発をAI 1stに変革する〜SaaS is dead時代で生き残るために〜 / AI 1st Product Development
kobakei
0
290
Reduxモダナイズ 〜コードのモダン化を通して、将来のライブラリ移行に備える〜
pvcresin
2
500
テストコードはもう書かない:JetBrains AI Assistantに委ねる非同期処理のテスト自動設計・生成
makun
0
1.3k
Let's Write a Train Tracking Algorithm
twocentstudios
0
150
Featured
See All Featured
Statistics for Hackers
jakevdp
799
220k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
GitHub's CSS Performance
jonrohan
1032
460k
The Power of CSS Pseudo Elements
geoffreycrofte
78
6k
Producing Creativity
orderedlist
PRO
347
40k
The Art of Programming - Codeland 2020
erikaheidi
56
13k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Rebuilding a faster, lazier Slack
samanthasiow
84
9.2k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
61k
Docker and Python
trallard
46
3.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Transcript
Mobile web debugging My tricks to develop for the mobile
web By: Gregers Rygg Twitter: @gregersrygg
Desktop • ”All” have developer tools • Most are very
good
Inspect HTML
Debug JavaScript
Network analysis
Console JavaScript profiling Performance tips Modify CSS/JavaScript on the fly
Memory inspection Database explorer +++
Possible in Internet Explorer 6…
…usable in Internet Explorer 8+
Console Inspect HTML Debug JavaScript Network analysis JavaScript profiling Performance
tips Modify CSS/JavaScript on the fly Memory inspection Database explorer +++ Desktop
Inspect HTML Debug JavaScript Network analysis JavaScript profiling Performance tips
Modify CSS/JavaScript on the fly Memory inspection Database explorer iPhone/Android (built-in) Console
JavaScript on the fly JavaScript profiling Performance tips Memory inspection
Opera Mobile + Dragonfly Console Inspect HTML Debug JavaScript Modify CSS Database explorer? Network analysis
Yay!, but… …unfortunately not much used (for m.finn.no)
Debug JavaScript Network analysis JavaScript profiling Performance tips Memory inspection
iPhone/Android (Weinre) Console Inspect HTML Modify CSS/JavaScript on the fly Database explorer
Tip #1 • Connect to both WiFi and ethernet
HP ”Elite”Book • WiFi turns off when ethernet is connected
• BIOS Settings (reboot + ESC, then F10) • System Configuration – Built-In Device Option • Disable LAN/WLAN switching
Tip #2 • Webkit Inspector Remote (Weinre) • Demo time!
Weinre install http://phonegap.github.com/weinre/ Installing.html $ cat ~/.weinre/server.properties boundHost: -all- httpPort:
8001
Weinre install • Start server • Add bookmarklet • Increase
Auto-Lock time (iOS setting) to prevent disconnect
<c:if test="${!empty param.weinre}"> <script src="http://${pageContext.request.serverName}:<c:out value="${param.weinre}"/>/target/target-script-min.js#anonymous"> </script> </c:if> page.jsp?weinre=8001
<c:if test="${!empty param.weinre}"> <script src="http://${pageContext.request.serverName}:<c:out value="${param.weinre}"/>/target/target-script-min.js#anonymous"> </script> <script> window.console &&
(window.onerror = function(e) { console.error(e); }); </script> </c:if> page.jsp?weinre=8001
Tip #3 Charles Debugging Proxy
Tip #4 <style type="text/css” media = "${param.debug != 'mobile' ?
'only screen and (max-device-width: 480px)' : 'screen'}” >
Link to all tools mentioned ++ http://goo.gl/FgOg7