Webview:opendevtools() method


Show the Devtools window, a set of web development tools that appears next to the rendered webpage in the Webview. The DevTools window provides a powerful way to inspect and debug webpages and web apps.

Return value

This function returns no value.

Example

local ui = require "ui" require "webview" -- create a simple window local win = ui.Window("Webview.opendevtools() sample", 600, 300) local Webview = ui.Webview(win, "https://www.google.com") Webview.align = "all" function Webview:onReady() -- Opens the Devtools window Webview:opendevtools() end -- shows the window win:show() while win.visible do ui.update() end