Question
ESTK crashing when debugging
Here is a sample script that creates a menu item in the context thumbnail menu in Bridge. You save this script as a jsx file and place it in your StartUpScripts folder.
When this script runs, the debugger halts at the debugger statement, the line is highlighted in yellow and the cursor is frozen at the start of the line (it does not blink). About 3 seconds later the ESTK crashes.
Could someone else please try this on their computer to see if you can duplicate this behavior. Any suggestions would be most appreciated.
Thanks.
Here is the script:
#target bridge
$.level = 0;
if ( BridgeTalk.appName == "bridge" ) { // only load into bridge
> // create menu
> var cmdMenuShell = new MenuElement('command', 'Menu shell ...', 'before Thumbnail/Cut-');
> // execute menu
> cmdMenuShell.onSelect = function() {
>> $.level=1; debugger;
>> alert("Hello Menu shell");
> }
}
When this script runs, the debugger halts at the debugger statement, the line is highlighted in yellow and the cursor is frozen at the start of the line (it does not blink). About 3 seconds later the ESTK crashes.
Could someone else please try this on their computer to see if you can duplicate this behavior. Any suggestions would be most appreciated.
Thanks.
Here is the script:
#target bridge
$.level = 0;
if ( BridgeTalk.appName == "bridge" ) { // only load into bridge
> // create menu
> var cmdMenuShell = new MenuElement('command', 'Menu shell ...', 'before Thumbnail/Cut-');
> // execute menu
> cmdMenuShell.onSelect = function() {
>> $.level=1; debugger;
>> alert("Hello Menu shell");
> }
}
