for web content debug, you need browser debug protocol, which vs code support.
For windows and WebView2, some tricks may works
import os
os.environ["WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS"]= " --remote-debugging-port=9222 "
refs:
webview/webview#1291 (comment)