If you are using a engine built from source, you can use the solution I came up with.
But if you are using a release version, here are the steps you can debug your web:
- Add
-cefdebug=port
to commad line before you start your project.
Note: If your unreal engine version is 4.27.2, the default port is8088
. And in version 5.3.1, there is no default port, so you must add commad line when you want to debug web.
- Create webwidget in your level
- Open Chrome(Edge), and open
chrome://inspect
(if you use edge, openedge://inspect
) - Add the
localhost:port
toDiscover network targets
- Wait for several seconds, you can find your web can be inspected.