官术网_书友最值得收藏!

  • Learning Ionic
  • Arvind Ravulavaru
  • 236字
  • 2021-07-16 13:40:55

The browser developer tools setup

Before we proceed further, I would recommend setting up the developer tools in your browser in the following format.

Google Chrome

Once the Ionic app is launched, open the developer tools by pressing Cmd + Opt + I on Mac and Ctrl + Shift + I on Windows/Linux. Then click on the last but one icon in the top row, next to the close button as seen in the following screenshot:

This will dock developer tools to the side of the current page. Drag the demarcation line between the browser and the developer tools till you see the view becoming similar to a mobile.

If you click on the Elements tab in the developer tools, you can easily inspect the page and see the output in one go, as shown in the following screenshot:

This view is very helpful for fixing errors and debugging issues.

Mozilla Firefox

If you are a Mozilla Firefox fan, you can achieve the same result as above as well. Once the Ionic app is launched, open developer tools (not Firebug, Firefox's native development tools) by pressing Cmd + Opt + I on Mac and Ctrl + Shift + I on Windows/Linux. Then click on the Dock to side of browser window icon, as shown in the following screenshot:

Now, you can drag the demarcation line to achieve the same result as we have seen in Chrome:

主站蜘蛛池模板: 城口县| 勃利县| 上栗县| 嘉荫县| 句容市| 香港| 云浮市| 伊宁县| 竹北市| 商洛市| 宜宾县| 齐河县| 祁门县| 微博| 遵义县| 遵义县| 呼和浩特市| 普洱| 新津县| 莱西市| 澄迈县| 定陶县| 九台市| 山丹县| 崇礼县| 宣城市| 乌苏市| 陈巴尔虎旗| 祁阳县| 社会| 卢湾区| 宜兰市| 平乡县| 南丰县| 贺州市| 枣庄市| 十堰市| 阆中市| 洛扎县| 永德县| 弥渡县|