HTML Debugging with remote DevTools (inspector)
On Gen4 at 8.5.53.2 the below seems to be working, except for screencast.
Had issues with connecting to Gen5 from Windows 10 on other PC. Wonder if there is a firewall related issue…
sub main()
x = 0
y = 0
width = 1920
height = 1080
rect = CreateObject("roRectangle", x, y, width, height)
url = "https://google.com"
msgPort = CreateObject("roMessagePort")
inspectorServerPort = 2999
config = {
url: url,
mouse_enabled: false,
storage_path: "/local/",
port: msgPort,
inspector_server:{port:inspectorServerPort}
}
html = CreateObject("roHtmlWidget", rect, config)
html.Show()
print "Debug with Chromium: chrome://inspect/devices#devices"
ip = createobject("ronetworkconfiguration",0).getcurrentconfig().ip4_address
print "Debug with Chromium: http://" + ip + ":" + inspectorServerPort.toStr()
while true
msg = msgPort.WaitMessage(0)
print "@http Event: "
print msg.getData()
end while
end sub