Xojo Conferences

« Frühbucherrabatt ende… | Home | Faster String handlin… »

Tip of the day: Show debugger in FileMaker from within a script

As we discovered today, we can have a script open the debugger. We can check the menu in FileMaker and if the debugger is not visible, we show it: 

#The menu command as we got it from Menubar.ListMenuCommands

Set Variable [$DebuggerMenuID; Value:49260]

#Do we have a debugger?

If [MBS( "Menubar.HasMenuCommand"; $DebuggerMenuID ) = 1]

#Is it activate already?

If [MBS( "Menubar.IsMenuCommandChecked"; $DebuggerMenuID ) = 1]

#debugger already visible


#show debugger

Set Variable [$r; Value:MBS( "Menubar.RunMenuCommand"; $DebuggerMenuID )]

Pause/Resume Script [Duration (seconds): ,1]

End If

End If


#now follows your script that should always run in debugger

The new command Menubar.IsMenuCommandChecked will be part of 6.3pr3 soon. If you like to try, please don't hesitate to contact us. 
17 06 16 - 20:52
one comment

Pretty cool. Is there any chance we can get the values in the debugger? That could be real useful.
Taylor Sharpe (Email) - 17 06 16 - 23:20

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.