I can reproduce this problem here. We’ll get this resolved in a Script Debugger maintenance release. The workaround is to click on the fold/unfold buttons in the script editor margin.
OK, this is probably not all that common, but I ran into it working on a script library with a dictionary.
If you add continuation characters to separate items in the handler declaration (see below), it folds the handler very nicely, and I like the look.
But, once folded it doesn’t want to unfold. The only way that I could get it to unfold is in the code folding menu selecting unfold all.
→ Mac OS: 11.6.8 (20G730)
→ Script Debugger 8.0.5 (8A61)
on display extended window windowTitle ¬
acc view width theWidth ¬
acc view height theHeight ¬
acc view controls controlsList ¬
giving up after giveUp : (0) ¬
active field defaultField : (missing value) ¬
initial position initPosition : ({}) ¬
align cancel button cancelLeftFlag : (true) ¬
buttons allButtons