ດີບັກ webapps¶
ນັກພັດທະນາເວັບສ່ວນໃຫຍ່ອາດຈະມັກດີບັກໃນບຣາວເຊີປົກກະຕິ. ບຣາວເຊີຂອງ Ubuntu Touch ປະຕິບັດຕາມມາດຕະຖານເວັບສະໄໝໃໝ່ຢູ່ແລ້ວ.
ສຳລັບກໍລະນີທີ່ຕ້ອງດີບັກເພີ່ມເຕີມ, ທ່ານສາມາດເຮັດໄດ້ສອງວິທີ:
ກວດສອບ logs¶
If you are comfortable in a CLI environment, most Javascript errors will leave an entry in the app log file:
.cache/upstart/application-click-[YOUR_APP_NAME.AUTHOR_NAME..].log
You can check the log file in the terminal or use the LogViewer app.
Note
ໃຫ້ເປີດໂໝດນັກພັດທະນາເພື່ອໃຫ້ລະບົບເກັບ log ໄວ້ຈົນກວ່າຈະມີການ reboot. ຖ້າບໍ່ດັ່ງນັ້ນ log ຈະຖືກລຶບທັນທີທີ່ປິດແອັບ.
ການດີບັກໃນບຣາວເຊີ¶
ບຣາວເຊີເລີ່ມຕົ້ນຂອງ Ubuntu Touch ໃຊ້ເຕັກໂນໂລຊີ Blink (ຄືກັບ Chrome). ທ່ານສາມາດເຂົ້າເຖິງ debugger ແບບ Chrome ໄດ້ໂດຍການເປີດບຣາວເຊີໃນໂໝດພິເສດ.
On your phone, start the browser in inspector mode::
export QTWEBENGINE_REMOTE_DEBUGGING=0.0.0.0:9221
morph-browser --desktop_file_hint=/usr/share/applications/morph-browser.desktop [web_site_url]
ຈາກນັ້ນໃນຄອມພິວເຕີຂອງທ່ານ, ໃຫ້ເປີດ Chrome ແລະ ໄປທີ່ http://YOUR_UT_IP_ADDRESS:9221