Debugging Your App
Guide
To start debugging your Glue42 Enterprise app in Visual Studio Code, execute the following steps:
- Start Glue42 Enterprise with the
--remote-debugging-port
command line argument and specify a debugging port:
tick42-glue-desktop.exe --remote-debugging-port=9222
Using the --remote-debugging-port
command line argument instructs Glue42 Enterprise to listen on the specified port for a debug connection.
- Add a new section to the
launch.json
file of Visual Studio Code with the following configuration:
{
"name": "Glue42: Renderer",
"type": "chrome",
"request": "attach",
"targetSelection": "pick",
"port": 9222,
"webRoot": "${workspaceFolder}",
"timeout": 30000
}
Note that the port number in the launch.json
configuration must be the same as the one specified in the --remote-debugging-port
command line argument for starting the Glue42 Enterprise executable file.
Start your app. To debug your app locally, start your app on
localhost
or other development server and update the"url"
property in your app definition with the respectivelocalhost
or development server URL.Select the
Glue42: Renderer
profile from "Run and Debug" in Visual Studio Code.Select your app tab and start debugging.