Is Script Debugger being a little too helpful?

If I type this:

set sdVersion to version of application "Script Debugger"

When I hit return it becomes this:

set sdVersion to version

and that doesn’t run.

But here’s the funny thing. I’ve used that command before with no problem, and I’ve typed it in and used it just a couple minutes ago with no problem.

(I know there’s multiple ways to get this from SD and better ways to script that, and it’s not a roadblock or anything, just reporting an unexpected behavior).

→ Script Debugger 8.0.2 (8A39)
→ Mac OS 11.6 (20G165)

It should run, although probably not as you expect.

It’s nothing to do with Script Debugger. Type this in Script Editor and compile:

set sdVersion to version of application "Script Editor"

Now try this:

use scripting additions
set sdVersion to version of application "Script Editor"

The same thing happens.