Help with scripting Script Debugger7 to save compiled script as application

I am trying to script the latest version of SD7 running on Catalina to open complied scripts and save them as applications. I have tried many versions of code without success. Below is the last sample of code that I tried without success.

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

local docName, newFile, thePath

set thePath to "Macintosh HD:Users:jholden1:desktop:listRoutines.scpt"
set appPath to "Macintosh HD:Users:jholden1:desktop"
set theApp to "Macintosh HD:Users:jholden1:desktop:listRoutines.App"
set newApp to a reference to file theApp

tell application id "com.latenightsw.ScriptDebugger7" -- Script Debugger.app	
	activate
	set thedoc to open thePath
	tell thedoc
		save thedoc in file newApp as script application with show startup screen without run only
		--save as script application with show startup screen without run only
		close with saving
	end tell	
end tell

How can I accomplish this?

There does seem to be an issue. While we try to hunt it down, you can use something like this:

tell application id "com.latenightsw.ScriptDebugger7" -- Script Debugger.app	
	activate
	set theDoc to open theScript
	set theSource to source text of theDoc
	close theDoc without saving
	set newDoc to make new document with properties {source text:theSource}
	save newDoc in newApp as script application with show startup screen without run only
	close newDoc with saving
end tell

Thanks! That does work for me. I will use this technique until the problem is resolved.

FYI, I checked and this is a regression, and the fix should be in the next maintenance version.