The Desktop Client features a built-in web browser that lets you embed the web interface or web client of third-party software directly into Nx Witness. This integration allows you to manage third-party applications without switching windows.
The VMS uses the Qt WebEngine, which is based on Chromium. Because the in-client browser has certain limitations, you can enable Developer Tools in an external Chromium-based browser (e.g. Chrome, Chromium, Edge, etc) to debug and troubleshoot web pages running inside the VMS.
Enable and access Developer Tools
To investigate issues with the in-client browser, you must start the Desktop client from the command line and specify a remote debugging port.
Step 1: Set the debugging port and launch the client
Follow the instructions for your specific operating system.
For Windows
Open the Command Prompt.
-
Navigate to your applicable client directory.
Initial installations:
C:\Program Files\Network Optix\Nx Witness\Client\<version>Updated or latest versions:
C:\Users\%USERNAME%\AppData\Local\Network Optix\client\default\<version>
Set the remote debugging environment variable by entering the following command (replace
8090with your preferred port if necessary):set QTWEBENGINE_REMOTE_DEBUGGING=8090Start the desktop client from the same command prompt:
"HD Witness.exe"
For Linux
Open a terminal window.
-
Navigate to your applicable client directory.
Initial installations:
/opt/networkoptix/client/<version>/binUpdated or latest versions:
/home/$USER/.local/share/'Network Optix'/client/default/<version>/bin
Set the remote debugging environment variable by entering the following command (replace
8090with your preferred port if necessary):export QTWEBENGINE_REMOTE_DEBUGGING=8090Start the desktop client from the same terminal:
./client-bin
Step 2: Open the Developer Tools in a browser
Open an external Chromium-based browser window. (e.g. Chrome, Chromium, Edge, etc)
In the address bar, navigate to:
localhost:<port>
(for example,localhost:8090).Select the web resource you want to investigate.
The external browser opens the standard Chromium Developer Tools interface, allowing you to debug the page running inside the Desktop client.
Additional Information
The built-in web browser in the VMS is based on Chromium. For more details on how the underlying framework renders web pages and executes JavaScript, see the following Qt documentation:
Comments
0 comments
Article is closed for comments.