KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Saved Debugger Expressions in Project Mode
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: November 27, 2023

The 4D Debugger has an expression pane that allows expressions to be entered to view the evaluated result for the process being debugged. These expressions can be saved so that when the debugger is closed and reopened, the same expressions reappear.

In project mode, these expressions are stored in the current platform user's preferences direcotry of the project. In the root directory that contains the 'Project' directory the preferences for the platform's user will be stored in a directory named 'userPreferences.{user name}'.
Inside this folder, if there are any debugger expressions saved, this information will be stored in a debuggerWatches.json file.

The debuggerWatches.json file contains a collection of objects for each expression. If an expression that is causing a crash to occur was accidentally added, it can be manually removed from this file. This file can also be used to share debugger expressions with other developers or it can also be saved to maintain certain sets of expressions for debugging certain feature sets.

Commented by Jody Bevan on December 2, 2023 at 7:21 AM
In project mode, these expressions are stored in the current platform user's preferences direcotry Notice the spelling error in the last word. Just thought you might like to fix it up.