Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

WebView.ShowDebugBar

Shows the DebugBar for the web viewer on Windows.

Component Version macOS Windows Linux Server iOS SDK
WebView 10.3 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WebView.ShowDebugBar"; WebViewerRef { ; Flags; X; Y; Width; Height } )   More

Parameters

Parameter Description Example Flags
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
Flags Various flags.
Add 1 to not scale for screens with >100%.
When window is scaled, it shows bigger, but may not have the picker work correclty.
Add 2 to put the window always on top of other windows.

Default is 0.
0 Optional
X The x position for placement on screen.
Default is near center of screen.
Optional
Y The y position for placement on screen.
Default is near center of screen.
Optional
Width The width of the window.
Default is 600.
600 Optional
Height The height of the window.
Default is 400.
400 Optional

Result

Returns OK or error.

Description

Shows the DebugBar for the web viewer on Windows.
With DebugBar you can inspect HTML elements, see scripts and modify elements on the fly.
There is a JavaScript console to quickly edit something if needed.

Please download and install DebugBar extension for Internet Explorer:
https://www.debugbar.com

You may need to buy a license for it to use all features.

Known issues:

Note for Windows: For Windows this function is only supported in FileMaker Pro when using Internet Explorer as engine behind the Web Viewer, but not when Microsoft Edge/Chrome engine is used. But the functions should still work if with Web Viewers created via plugin using WebView.Create and WebView.CreateWithControl as those still use Internet Explorer.

Examples

Show DebugBar:

# Show Debugbar in file WebViewer DebugBar

# Show debug bar if available
Set Variable [ $r ; Value: MBS("WebVIew.ShowDebugBar"; "web") ]
If [ MBS("IsError") ]
    Show Custom Dialog [ "Failed to show debug bar" ; $r ]
End If

See also

Release notes

Blog Entries

Created 2nd July 2020, last changed 2nd July 2020


WebView.SetUsePrivateBrowsing - WebView.StopLoading

Feedback: Report problem or ask question.