<< messagebox Interface graphique printfigure >>

Scilab Help >> Interface graphique > openDevtools

openDevtools

Open DevTools window of uicontrol browser

Syntax

openDevtools(h)

Arguments

h

Handle of type uicontrol and style browser.

Description

Browser must allow debug.

See uicontrol properties dedicated page about debug properties.

Examples

f = figure("infobar_visible", "off", "toolbar_visible", "off", ...
    "dockable", "off", "menubar", "none", "default_axes", "off", ...
    "axes_size", [300 300], ...
    "layout", "border");

html = [...
    "<html>"
    "</html>"];

mputl(html, TMPDIR + "/debug.html");

u = uicontrol(f, ...
    "style", "browser", ...
    "debug", "on", ... //allow devtools (ctrl+shit+i) in browser component
    "string", TMPDIR + "/debug.html", ...
    "callback", "cbBrowser");

function cbBrowser(msg, cb)
    if msg == "loaded" then
        openDevtools(gcbo);
    end
endfunction

See also

History

VersionDescription
2025.1.0 openDevtools added.

Report an issue
<< messagebox Interface graphique printfigure >>