goldendict-ng/howto/how to debug html with qtcreator.md

14 lines
447 B
Markdown
Raw Normal View History

2021-11-25 01:26:00 +00:00
Developers need to check the html occassionly.
2021-11-25 01:26:23 +00:00
2021-11-25 01:26:00 +00:00
based on qtcreator.
2021-11-25 01:26:23 +00:00
2021-11-25 01:26:00 +00:00
Steps:
2021-11-22 01:36:12 +00:00
1. set enviroment variable QTWEBENGINE_REMOTE_DEBUGGING=10000
![image](https://user-images.githubusercontent.com/105986/142788556-f97a6d21-21ea-4e65-862a-5f63bd198bae.png)
2021-11-22 01:39:35 +00:00
2.run goldendict project
2021-11-22 01:36:12 +00:00
2021-11-22 01:39:35 +00:00
3.open chrome ,and navigate to http://localhost:10000
4.in goldendict ,right mouse menu ,select "Inspect",this will navigate to the corresponding element in the chrome.