Debugging a web component
Debugging a Web Component with the GBC front-end
In order to debug a Web Component when displayed on the GBC front-end, start the debug mode of your browser (for example, in Chrome, hit the F12 key), and use the integrated HTML / JavaScript debugger to inspect the Web Component contents.
Debugging a Web Component with the GDC front-end
The WebEngine debugger is a debugging tool that opens in a separate window, providing access to the QT WebEngine Developer Tools. These tools include a variety of tools. One such tool is the inspector, which shows the HTML and JavaScript code when you click on an element. To learn more about tools for Web developers, see Chrome DevTools.
To open the Chrome Developer Tools window, use the [Alt] + [Shift] + [Right
Click]
shortcut combination over the web component field. This shortcut will work in native
mode and universal rendering mode.
Debugging a Web Component with the GMA front-end
In order to debug a web component displayed on GMA, you need a Chrome web browser, and an USB cable to plug the device to your computer.
- Connect your device to your desktop with the USB cable.
- Stop GMA on the device, if it is already running.
- Enable debugging option in GMA parameters.
- Start the application with a web component. This will start GMA with debug service enabled (please wait as the application could take longer to start)
- Open Chrome on the desktop computer.
- In the Chrome URL address bar, enter:
chrome://inspect/#devices
- On the device, accept the USB debugging.
- Click on "inspect" link to open the HTML debug window.
Debugging a Web Component with the GMI front-end
In order to debug a web component displayed on GMI, you need to setup the SafariĀ® Web Inspector. Check the AppleĀ® development site for more details about enabling the Safari Web Inspector: http://developer.apple.com.
- On you Mac, open Safari and make sure the "Develop" option is available. If this option is not available, go to Safari preferences and enable the option.
- On the device, go to Settings. In Safari preferences, go to Advanced and enable the Web Inspector option.
- Run the app on the device or simulator, or start the program in development mode to display on the GMI front-end.
- On the Mac, find the connected device/simulator in the Develop menu of Safari and browse the debuggable components.