Debugging a WebVI
- Updated2024-05-31
- 2 minute(s) read
Debugging a WebVI
WebVIs support a subset of the debugging techniques available in an editor like LabVIEW. You can debug WebVIs using the following strategies.
| Use Case | Instructions |
|---|---|
| You want to probe the value of a wire while running in the editor. | See the Using Probes to Check Values on a Wire topic. Note G Web does not
support highlight execution or breakpoints. |
|
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 G Web Development Software 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 as a Web Page
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.
- Error Management
- Using Probes to Check Values on a Wire
When your WebVI is running in the editor environment, you may want to check the values on the wires to determine if and where any unexpected data occurs.