# Tooltips for Script Debugger in FileMaker

**URL:** <https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684>\
**Category:** MBS Plugins\
**Tags:** scripting\
**Created:** [February 12, 2021, 2:04pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684 "2021-02-12T14:04:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 12, 2021, 2:04pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/1 "2021-02-12T14:04:02Z")

</div>

When using other development tools, we frequently have a feature to inspect values for variables or fields. Just move the mouse over the variable or field and see what's inside. This is very convenient for debugging a script to quickly see values, especially if all the local variables and object properties don't fit a single variable viewer window.

 ![](https://www.mbs-plugins.com/image/debuggerVariable.jpg)

We got an idea for FileMaker. The macOS NSView class allows an application developer to register a function to provide a tooltip on demand. Instead of filling tooltips earlier, you can later decide on the value and generate it on the fly.

To implement tooltips, we register for providing tooltips. When you move mouse over the text lines, the plugin is called and asked for the tooltip text. We then look on the mouse position and what text is below the mouse position. This text is scanned for a word to left and right. We look for double double colon "::" and for one or two signs. If we have a text starting with or text::text, we evaluate this and see if FileMaker can provide us a value. If we have a value, we show the content in the tooltip. This includes the data type, so you can distinguish a text containing a number from a pure number.

 ![](https://www.mbs-plugins.com/image/debuggerField.jpg)

Please notice that we evaluate in current context, so we get current value, not a value from past. And we don't support field or variable names with spaces inside. There may be other characters we incorrectly recognize as being part or not part of an identifier. Let us know if you find a bug.

All our changes to FileMaker Pro move the experience more from low code to pro code category. We provide improvements for the power users to better work in FileMaker. Since we provide the features from outside, we are limited in various ways. For example FileMaker internally knows better about what variables or fields are used and could provide this more efficient. Of course we would enjoy if Claris implements a few of the features into the product. But for the time being, we are happy to help and encourage everyone to try our features. And for the case there will be problems with future versions, we provide a checkbox in preferences to disable the changes.

This feature will be available with next pre-release version of our plugin and is for macOS only. Seems to work fine from FileMaker 15 to the latest 19.x release. Please do not hesitate to contact us with questions.

---

<div class="post-metadata">

**Author:** ![Cecile](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/cecile/32/98_2.png) [@Cecile](https://the.fmsoup.org/u/Cecile)\
**Post date:** [February 12, 2021, 2:32pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/2 "2021-02-12T14:32:02Z")

</div>

Christian this is fantastic! You must have a special place in your subconscious mind dedicated to FileMaker after all these years! How you exploit every little thing to achieve goals is remarkable. And the speed! Wasn’t it just 2 days ago that @FileKraft expressed such wish!

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 12, 2021, 2:45pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/3 "2021-02-12T14:45:20Z")

</div>

Well, I read the wish, I remembered the tooltip API from Apple and thought I may just try my luck. So far works just fine.  
If you like, I can give you a link for the current build.

---

<div class="post-metadata">

**Author:** ![Bobino](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bobino/32/194_2.png) [@Bobino](https://the.fmsoup.org/u/Bobino)\
**Post date:** [February 12, 2021, 6:15pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/4 "2021-02-12T18:15:58Z")

</div>

Sorry if I did not post this in the right place to start with, just some additional considerations:

> [@Upcoming feature for MBS Plugin](https://the.fmsoup.org/t/upcoming-feature-for-mbs-plugin/1667/22):
>
> Hi @MonkeybreadSoftware , will this feature has it's own preference checkbox to disable it? I'm not too worried about evaluating a variable ahead of time, but mousing over a field that would trigger tooltip to evaluate that same field out of context could have it's own performance implications. There is one system I support where I quite literally cannot use the dataviewer's "active" tab when a script is running because the initial developer implemented selector connector. Summary fields can sp…

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 12, 2021, 6:16pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/5 "2021-02-12T18:16:39Z")

</div>

okay, look now:

 ![Bildschirmfoto 2021-02-12 um 19.14.46](https://canada1.discourse-cdn.com/flex030/uploads/fmsoup/original/2X/f/f01ffc0e2257c6f6354b9a5ef306d1c383e7d954.jpeg)

---

<div class="post-metadata">

**Author:** ![Bobino](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/bobino/32/194_2.png) [@Bobino](https://the.fmsoup.org/u/Bobino)\
**Post date:** [February 12, 2021, 6:16pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/6 "2021-02-12T18:16:53Z")

</div>

I see you already replied in the other thread. Thanks for answering.

---

<div class="post-metadata">

**Author:** ![Vincent\_L](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@Vincent\_L](https://the.fmsoup.org/u/Vincent_L)\
**Post date:** [February 12, 2021, 10:03pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/7 "2021-02-12T22:03:25Z")

</div>

Christian, you're awesome.  
What happens if variables have a very big content, do you truncate it ?

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 13, 2021, 8:04am UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/8 "2021-02-13T08:04:23Z")

</div>

Oh, good idea. Maybe I should cut it to 1000 characters.

---

<div class="post-metadata">

**Author:** ![Vincent\_L](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@Vincent\_L](https://the.fmsoup.org/u/Vincent_L)\
**Post date:** [February 13, 2021, 10:46am UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/9 "2021-02-13T10:46:29Z")

</div>

Yes you probably should, but also if you could fidn a way, maybe a keystroke or soething else to copy the whole variable content in the clipboard it would be very usefull, especially with big variables or trying to do the same thing takes a lot of time due to the terrible data viewer performance with big vars

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 15, 2021, 9:46am UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/10 "2021-02-15T09:46:05Z")

</div>

Now available:  
[MBS FileMaker Plugin, version 11.1pr4](https://www.mbs-plugins.com/archive/2021-02-15/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

---

<div class="post-metadata">

**Author:** ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)\
**Post date:** [February 24, 2021, 7:10pm UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/11 "2021-02-24T19:10:30Z")

</div>

You guys tried the tooltips?  
Works as described or any issues found?

---

<div class="post-metadata">

**Author:** ![FileKraft](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/filekraft/32/1183_2.png) [@FileKraft](https://the.fmsoup.org/u/FileKraft)\
**Post date:** [February 28, 2021, 3:29am UTC](https://the.fmsoup.org/t/tooltips-for-script-debugger-in-filemaker/1684/12 "2021-02-28T03:29:20Z")

</div>

thanks for the update Christian! - will try new tooltip feature but frankly to much mousing involved - I desire just on the line where the script step execution cursor is always and permanently displaying the values involved in the current step if any relevant.

Nethertheless with tooltip amazing improvement since much easier to see what's going on then glancing over to data viewer ..
