@Mgs0101 Welcome to the latest version of the ExtendScript Debugger extension! Very sorry to hear of your confusion. Hopefully these responses will help clear things up!
I had been using ExtendScript for a while and today it has suddenly stopped working. The bottom status bar had a yellow text with 'Select Target Application' this has now gone missing.
The yellow status bar was removed during the transition from V1 to V2. This was done because the V2 extension now supports creating multiple simultaneous debug sessions at the same time. If you have more than one compatible application installed and you do not specify which application you wish to target in your "launch configuration" (launch.json file), then you will be shown a picker.
When I now attempt to run the script, I have to choose between 'Launch' or 'Attach'. I then have to choose between 'Main' and 'Transient' - I never had to do either of this before.
The new version of the extension supports more use cases than the old one. The Attach and Launch configurations enable different workflows. Based on the description of your troubles, it seems likely that the Launch configuration is what you're looking for.
Please note that you can create your own launch.json file and define a configuration that best matches your needs. For a configuration that will debug the "currently focused" script in Illustrator 2022's "main" ExtendScript engine, you could use the following for your launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"type": "extendscript-debug",
"request": "launch",
"name": "Launch in Illustrator",
"hostAppSpecifier": "illustrator-26.064",
"engineName": "main",
},
]
}
With this configuration in place, all you will need to do is hit the "Start Debugging" play button in the Run and Debug View.
Would be most grateful if anyone can assist, as I have now gone back to manually performing tasks, which is extremely stressful.
I hope that my (and others') responses will help reduce your stress from this transition. The new v2 version is decidedly more responsive and more stable than v1 versions. Hopefully after you get to work with it a bit and figure out the new workflow, it will disappear into the background.
I would very highly recommend spending a few minutes to read through/skim the new version's Readme. It has lots of detail and instructions for using the various features the extension enables.
One feature I feel that I should call out is that the new version of the extension provides a new command to evaluate a script without needing to run the debugger. As a short cut, it also provides a new status bar button that triggers that command. You can also bind the evaluation command to a specific set of shortcut keys and provide options that allow you to specify the host application/engine so that you don't have to pick from the list every time it's triggered.
There's a lot there that will hopefully help you streamline your development experience! Please give the new version a shot and let us know how it goes!