Script Debugger lets you set another script as the implicit parent of the current script. The mechanism involved is AppleScript’s script object inheritance.
To set a parent–child relationship between two scripts:
Both scripts must be open.
Bring the “child” script frontmost. Choose Script > Parent Script and the name of the parent script.
This parent-child relationship persists only while both scripts are open. If you try to close the parent script, you’ll get a dialog warning that you’re about to break the parent-child relationship.
This feature can be employed to make a set of top-level entities (properties, handlers, etc.) from one script available in another (for example, you could use it test individual handlers in a script without altering that script), or for simulating a runtime environment where parent script relationships are used.
Note: Neither the “parent” script nor the “child” script may be in debug mode.