1. Download the corresponding Wireshark installation package on the Wireshark website (https://www.wireshark.org/#download) for installation
2. Add System environment variable settings (computer-right---Properties-Advanced system Settings-advanced-environment variables-system variables-new)
Variable name: sslkeylogfile
Variable Value:%userprofile%\sslkeysenv.pms
3. Start the Chrome browser in CMD using the command line
> "C:\Program Files (x86) \google\chrome\application\chrome.exe"--ssl-key-log-file=%userprofile%\sslkeysarg.pms
4. Set Wireshark
(1) Open wireshark--Edit--Preferences--protocols--ssl
(2) Set (Pre)-master-secret log filename
C:\Users\fanyegong\sslkeysARG.pms (replace Fanyegong with your own user name)
(3) Set SSL Debug file (this step is optional)
C:\Users\fanyegong\ssl.log
5. You can now view the HTTP2 traffic in Wireshark
Use Wireshark to debug HTTP/2 traffic for Chrome browser under Windows