如题所述
ããå¨ææºä¸è¿è¡webå¼åï¼ç»å¸¸éå°çé®é¢å°±æ¯å¦ä½è¿è¡è°è¯ï¼ä¸é¢ä¼ä»ç»å¦ä½å¨chrome betaä¸è¿è¡è¿ç¨è°è¯ã
ããä¸ï¼ææºè®¾ç½®
ããææ°ççææºçchrome betaï¼æ¯æandroid4ï¼å¹¶ä¸æä¾äºè¿ç¨è°è¯åè½ï¼å ·ä½ç设置å¨ï¼è®¾ç½®--å¼å人åå·¥å ·-å¯ç¨USBç½é¡µè°è¯
ãã2ï¼å®è£ android sdkï¼å¾étoolsï¼æ´æ°å®è£ ã
ãã3ï¼æ°æ®çº¿è¿æ¥ææºï¼å¹¶ä¸å¼å¯è°è¯æ¨¡å¼ï¼ç¶åæå¼å½ä»¤è¡ï¼cdå°android sdkæ件夹ä¸é¢çplatform-toolsï¼è¾å ¥ adb forward tcp:9222 localabstract:chrome_devtools_remoteï¼åºç°æ示* daemon started successfully *ï¼æ¤æ¶ï¼æå¡å·²ç»æåå¼å¯ã
ãã4ï¼ä¸é¢çé 置好äºåï¼å¨chrome betaä¸é¢ï¼è®¿é®éè¦è°è¯çç½é¡µï¼ä¾å¦http://www.baidu.com/ï¼ç¶åå¨pcä¸é¢çchromeæµè§å¨éè¾å ¥http://localhost:9222/ï¼å¯ä»¥çå°ä¸å¾ççé¢ï¼
ããæ¤å¤ä¼ååºchrome betaä¸æå¼çææ页é¢ï¼ç¹å»æ¤çé¢å³å¯è¿å ¥è°è¯é¡µé¢ãï¼è¯´æï¼æ¤å¤å¯è½ä¼åºç°è¿æ¥ä¸æï¼æ æ³è®¿é®çé®é¢ï¼åªéè¦å¨å½ä»¤è¡éæ°å¼å¯æå¡å³å¯ï¼
ãã5ï¼è°è¯é ç½®ãç¹å»åï¼ä¼è·³è½¬å°ä¸ä¸ªçé¢ï¼æç®åçæ¹æ³å°±æ¯éè¿hostsçå®ååè½å°appsoptæå¨å®åå°ghs.google.comçåæ´»ipï¼æ¤ipç°å¨ä¸º203.208.46.178ï¼å æ¤åªéè¦å¨hostsåé¢æ·»å ä¸è¡203.208.46.178 chrome-devtools-frontend.appspot.comå³å¯ï¼hostsè·¯å¾ä¸ºC:\Windows\System32\drivers\etcï¼ã
ãã6ï¼æç»çè°è¯çé¢ä¸º
ããå¨æ¤å¤çä»»ä½ä¿®æ¹ï¼ææºé¡µé¢ä¸é½å¯ä»¥çå¾å°ã
ããä¸ï¼ææºè®¾ç½®
ããææ°ççææºçchrome betaï¼æ¯æandroid4ï¼å¹¶ä¸æä¾äºè¿ç¨è°è¯åè½ï¼å ·ä½ç设置å¨ï¼è®¾ç½®--å¼å人åå·¥å ·-å¯ç¨USBç½é¡µè°è¯
ãã2ï¼å®è£ android sdkï¼å¾étoolsï¼æ´æ°å®è£ ã
ãã3ï¼æ°æ®çº¿è¿æ¥ææºï¼å¹¶ä¸å¼å¯è°è¯æ¨¡å¼ï¼ç¶åæå¼å½ä»¤è¡ï¼cdå°android sdkæ件夹ä¸é¢çplatform-toolsï¼è¾å ¥ adb forward tcp:9222 localabstract:chrome_devtools_remoteï¼åºç°æ示* daemon started successfully *ï¼æ¤æ¶ï¼æå¡å·²ç»æåå¼å¯ã
ãã4ï¼ä¸é¢çé 置好äºåï¼å¨chrome betaä¸é¢ï¼è®¿é®éè¦è°è¯çç½é¡µï¼ä¾å¦http://www.baidu.com/ï¼ç¶åå¨pcä¸é¢çchromeæµè§å¨éè¾å ¥http://localhost:9222/ï¼å¯ä»¥çå°ä¸å¾ççé¢ï¼
ããæ¤å¤ä¼ååºchrome betaä¸æå¼çææ页é¢ï¼ç¹å»æ¤çé¢å³å¯è¿å ¥è°è¯é¡µé¢ãï¼è¯´æï¼æ¤å¤å¯è½ä¼åºç°è¿æ¥ä¸æï¼æ æ³è®¿é®çé®é¢ï¼åªéè¦å¨å½ä»¤è¡éæ°å¼å¯æå¡å³å¯ï¼
ãã5ï¼è°è¯é ç½®ãç¹å»åï¼ä¼è·³è½¬å°ä¸ä¸ªçé¢ï¼æç®åçæ¹æ³å°±æ¯éè¿hostsçå®ååè½å°appsoptæå¨å®åå°ghs.google.comçåæ´»ipï¼æ¤ipç°å¨ä¸º203.208.46.178ï¼å æ¤åªéè¦å¨hostsåé¢æ·»å ä¸è¡203.208.46.178 chrome-devtools-frontend.appspot.comå³å¯ï¼hostsè·¯å¾ä¸ºC:\Windows\System32\drivers\etcï¼ã
ãã6ï¼æç»çè°è¯çé¢ä¸º
ããå¨æ¤å¤çä»»ä½ä¿®æ¹ï¼ææºé¡µé¢ä¸é½å¯ä»¥çå¾å°ã
温馨提示:答案为网友推荐,仅供参考
第1个回答 2014-12-30