# How to collect debug information ## 1. Activate debug mode for GRAVITY extension, if extension is used ### 1.1. Open extension’s settings page: **Edge**: extension://cagndfididnledjnakfhigdkjkmiamlf/options/options.html **Chrome**: chrome-extension://pmpdmhggccibpajfnllimbmflgkpoaml/options/options.html ![[collect-debug-information-1.png]] 1.2. Click on the blue panel to expand all the settings 1.3. Enable verbose logging ![[collect-debug-information-2.png]] ### 2. Activate debug mode for GRAVITY, if GRAVITY control is shown on a page 2.1. Open a page where GRAVITY is used 2.3. Press Ctrl + Alt + D on keyboard and confirm activation of the debug mode ![[collect-debug-information-3.png]] ### 3. Open browser’s developer console on 'Console' tab #### Chrome ![[collect-debug-information-4.png]] ![[collect-debug-information-5.png]] #### Edge ![[collect-debug-information-6.png]] ![[collect-debug-information-7.png]] ### 4. Collect logs 4.1. Reload the page 4.2. Switch GRAVITY 'ON' if it switched off (if GRAVITY control is loaded) ![[collect-debug-information-8.png]] ### 5. Save and send collected logs 5.1. Right-click anywhere on the Console tab and save the collected console logs to a file. ![[collect-debug-information-9.png]] 5.3. Send log files to us. ### 6. Deactivate debug modes 6.1 Deactivate debug modes for GRAVITY and for extension in the same way as you activated them. # How to collect network requests sent In case GRAVITY does not load or some Callouts are not displayed as they are expected, collecting of data sent between GRAVITY Client and Server might help us to understand the reason. _Unfortunately, browsers do not provide an option to save only GRAVITY-related requests, even if a filter is applied, so depending on how the target application is built, this log may contain sensitive information if such information is displayed on the loaded view, so it is better to choose the simplest page without sensitive information displayed there._ The first step to get started is different for direct GRAVITY injection and injecting via [[Browser Extension]]. In case you do not use GRAVITY extension, just open browser’s developer console on 'Network' tab. Chrome: ![[collect-network-requests-1.png]]![[collect-network-requests-2.png]] Edge: ![[collect-network-requests-3.png]] ![[collect-network-requests-4.png]] ### With GRAVITY Extension In case you are using GRAVITY [[Browser Extension]], open extension’s developer console on 'Network' tab** 1.1. Open extension’s settings page **Chrome**: chrome://extensions/ **Edge**: edge://extensions/ 1.2. Activate “Developer mode“ Chrome: ![[collect-network-requests-5.png]] Edge: ![[collect-network-requests-6.png]] 1.3. Open extension’s developer console on 'Network' tab Chrome: ![[collect-network-requests-7.png]] ![[collect-network-requests-8.png]] Edge: ![[collect-network-requests-9.png]] ![[collect-network-requests-10.png]] ### 2. Collect logs 2.1 Reload the page 2.2. Switch GRAVITY 'ON' if it switched off (if GRAVITY control is loaded) ![[collect-network-requests-11.png]] ### 3. Save and send collected logs 3.1. Right-click anywhere on the “Network“ tab and save the collected console logs to a file. Chrome: ![[collect-network-requests-12.png]] Edge: ![[collect-network-requests-13.png]] 3.2. Send the saved file to us.