Yuav Paub
- Enable debug menu by inputting defaults write com.apple. Safari IncludeInternalDebugMenu 1 into Terminal.
- Disable debug menu by inputting defaults sau com.apple. Safari IncludeInternalDebugMenu 0 rau Terminal.
- Relaunch Safari tom qab tig cov ntawv qhia kev debug rau lossis tawm.
Safari ntev tau muaj cov ntawv qhia Debug zais uas muaj peev xwm siv tau. Keeb kwm npaj los pab cov neeg tsim tawm hauv kev debugging nplooj ntawv web thiab JavaScript code uas khiav ntawm lawv, cov ntawv qhia kev debug tau muab zais cia vim tias cov lus txib uas tau suav nrog hauv cov ntawv qhia zaub mov tuaj yeem ua rau muaj kev puas tsuaj ntawm nplooj ntawv web. Cov ntaub ntawv hauv kab lus no siv rau Macs khiav OS X El Capitan (10.11) lossis ua ntej.
Safari Debug Menu hauv OS X El Capitan thiab ntxov
Nrog kev tso tawm ntawm Safari 4 thaum lub caij ntuj sov xyoo 2008, ntau yam khoom noj muaj txiaj ntsig hauv Debug cov ntawv qhia tau tsiv mus rau cov ntawv qhia tshiab. Txawm li cas los xij, cov ntawv qhia zais Debug tseem nyob thiab txawm khaws ib qho lus txib lossis ob qho raws li Safari kev txhim kho txuas ntxiv. Nws raug tshem tawm tag nrho los ntawm OS X Sierra thiab tom qab tso tawm ntawm lub operating system.
Apple tau nkag mus rau qhov zais Tsim cov ntawv qhia ua cov txheej txheem yooj yim, tsuas yog xav tau mus rau Safari qhov nyiam. Nkag mus rau Debug zaub mov, ntawm qhov tod tes, yog qhov nyuaj me ntsis.
Ua kom Safari debug qhov rai yuav tsum tau siv Terminal, lub cuab yeej muaj zog rau kev nkag mus rau cov yam ntxwv zais ntawm Mac operating system thiab nws ntau cov apps. Terminal yog qhov zais cia rau qhib Safari's Debug menu.
Enable Safari's Debug Menu
Kaw Safari yog tias koj muaj nws qhib thiab tom qab ntawd:
- Mus Daim Ntawv Thov> Utilities thiab tso tawm Terminal.
-
Nkag mus rau cov kab hais kom ua hauv qab no rau hauv Terminal los ntawm kev ntaus nws lossis siv daim ntawv theej thiab muab tshuaj. Nkag mus rau cov lus txib ua ib kab hauv Terminal, txawm tias koj tus browser tuaj yeem ua rau ntau kab.
defaults sau com.apple. Safari IncludeInternalDebugMenu 1
- nias Enter or Return.
- Relaunch Safari. Cov ntawv qhia Debug tshiab muaj.
Disable Safari's Debug Menu
Yog tias koj xav lov tes taw Debug zaub mov, koj tuaj yeem ua tau txhua lub sijhawm, rov siv Terminal. Kaw Safari yog tias nws qhib thiab tom qab ntawd:
- Launch Terminal.
-
Nkag mus rau cov kab hais kom ua hauv qab no rau hauv Terminal los ntawm kev ntaus nws lossis siv daim ntawv theej thiab muab tshuaj. Nkag mus rau cov lus txib ua ib kab hauv Terminal, txawm tias koj tus browser tuaj yeem ua rau ntau kab.
defaults sau com.apple. Safari IncludeInternalDebugMenu 0
- nias Enter or Return.
- Relaunch Safari. Daim ntawv qhia Debug ploj lawm.
Favorite Safari Debug Menu Khoom
Nrog Debug cov ntawv qhia zaub mov hauv qab koj tswj, koj tuaj yeem sim ntau yam khoom noj. Tsis yog txhua yam ntawm cov ntawv qhia zaub mov siv tau vim tias muaj ntau tus tsim los siv rau hauv ib puag ncig kev txhim kho uas koj muaj kev tswj hwm lub vev xaib server. Txawm li cas los xij, cov khoom muaj txiaj ntsig suav nrog:
- Txhob Cia Siab
- Qhia Ncej Rate Meter, uas qhia CPU load, nplooj ncej tus nqi nrawm, thiab hloov kho tshiab rau nplooj ntawv, tag nrho hauv daim ntawv ntawm analog speedometers.
- Ntau yam kev xaiv chij.
- Sync iCloud keeb kwm.
- Nyob ntawm qhov version ntawm Safari, qhov kev xaiv rov pib dua thiab rov suav dua Cov Chaw Sab saum toj.