When encountering issues during Lynx page development, you can use DevTool for debugging. However, you need to follow these steps to integrate DevTool first.
It is recommended to integrate DevTool in non-production environments to keep your production builds lightweight. All code examples in this documentation can be found in the integrating-lynx-demo-projects.
You need to add two components: LynxDevTool
and the Devtool
subcomponent of LynxService
.
DevTool provides several debugging switches. Here are three important switches:
Lynx Debug
is the switch that controls all DevTool debugging.Lynx DevTool
controls main debugging features: element inspection and JavaScript debugging.Lynx LogBox
manages the LogBox.Lynx Debug
and
Lynx DevTool
need be enabledYou can configure these switches during Lynx Environment Initialization:
In addition to the three switches introduced earlier, there are more switches that can help you control the behavior of DevTool. Please refer to the Lynx DevTool Switch Page.
Congratulations! You have completed the DevTool integration. Now, you may launch the Lynx DevTool Desktop and connect your app via USB to start debugging.