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: 9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

WebView.ShowDebugBar

Shows the DebugBar for the web viewer on Windows.

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

Parameters

Parameter Description Example value
WebViewerRef Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function.
Flags Optional
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
X Optional
The x position for placement on screen.
Default is near center of screen.
Y Optional
The y position for placement on screen.
Default is near center of screen.
Width Optional
The width of the window.
Default is 600.
600
Height Optional
The height of the window.
Default is 400.
400

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:
  • The toolbar has a gear button, where you can pick locations. Choosing a location there may crash FileMaker.
  • If FileMaker runs on a screen with >100% scaling, the picker may not work correctly unless you pass 1 for Flags parameter, but then icons may be smaller.
  • HTTPs tab shows no data.
  • You may need to click reload in the DebugBar (orange arrow in toolbar) when switching to another page.
  • Running JavaScript works, but doesn't show errors or results.
  • The inspect element in context menu command does not work.

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

Blog Entries

Release notes

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


WebView.SetTitle   -   WebView.StopLoading

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos