Script Debugger can save compiled script files in two formats. You can choose a format either from the File > Script Format hierarchical menu or in the Save dialog.
Historical Note: The oldest compiled script format is a file with the compiled bytecode in the resource fork. Script Debugger can open a script file in this format, but it will save with the bytecode in the data fork.
Warning: A compiled script saved in debug mode will not run normally in other environments (and will not even open in Apple’s AppleScript Editor). Unless that’s what you intend, be sure to save the script in normal mode when you’re finished debugging it.
For a plain compiled script file, Script Debugger stores some secondary information in the file’s resource fork. In a bundle format file, however, no resource forks are used; secondary information is saved in separate files. (The description is saved in an .rtfd file, the recovery text is saved in an .rtf file, and the other secondary information is saved in a .plist file.) For this reason, a bundle format file is the most compatible with version control systems, non-Mac filesystems, and so on.