Debugging a WebVI
- Updated2023-02-17
- 2 minute(s) read
Debugging a WebVI
Unlike desktop VIs, WebVIs do not currently support debugging tools, such as execution highlighting, probes, and breakpoints. However, you can still debug a WebVI using the following strategies.
Use Case | Instructions |
---|---|
You want to see the error output of diagram objects. |
WebVIs support an alternative to automatic error management that logs unhandled errors to the
Output tab or browser development console. Because this does not provide the full capabilities of automatic error management, make sure you follow the guidelines for programmatic error management.
Note To view your error output, create an error indicator and place it on the panel.
|
Use this debugging strategy in either of the following cases.
|
To write log error information to the console of your web browser or LabVIEW NXG output window, go to the diagram palette and select .To view the information output by Write to System Log within the editor, on the Navigation pane, open the Output tab by clicking . To view the information output by Write to System Log in a web browser, use the console of the web browser development tools. |
You need to debug your top-level WebVI. |
Wire extra indicators at any point in your WebVI code to imitate probes and display the data that flows through a wire. Note WebVIs do not currently support G types as controls or indicators on the panel. If you create an indicator from a G type on the diagram, no corresponding indicator is available on the panel.
|
Related Information
- Building a Web Application
To view your completed web application in a web browser, build your application to generate HTML, CSS, JavaScript, and other files that are included in your application.