Copy link to clipboard
Copied
I installed ExtendScript Debugger extension for VSCode on Mac and followed all the instructions (including troubleshooting), however selection of the target application does not work with error "(#15)Can't initialize target." for all CC apps I have installed on Mac. Is the fix coming? Could you suggest how I can troubleshoot this?
ExtendScript Debugger extension conflicts ESTK and you should stop it.
this just force quit my whole vs code app why would you post this
WARNING THIS WILL CRASH YOUR VSCODE INSTANTLY AND YOU WILL NOT BE ABLE TO SAVE
killall "Code Helper (Renderer)"
Copy link to clipboard
Copied
I managed to get around this problem by closing all other workspace windows in VS Code and then initializing my target Adobe app.
Copy link to clipboard
Copied
Obviously VS Code gets confused when several workspace windows are open. I needed to close all others, restart VS Code and then after establishing the debugging connection, I can open other workspaces again.
This is annoying and the debugger isn't very stable anyway. Adobe really could help us developers out by improving this, please!
Copy link to clipboard
Copied
The part where you said "establishing the debugging connection" made all the difference to me in understanding what is going wrong.
I now understand it to mean that VS needs to connect to photoshop so it makes sense to first start vsc and have that start photoshop, that way we have the best guarantee that vsc will know "that photoshop exists".
Without antropomorphising vsc too much, any other way introduces enough doubt for vsc to become uncertain as to what photoshop is, where it is, whether it's runningn ...
Thank you for your spark of insight!
Copy link to clipboard
Copied
Version 2.0 of the debugger is on the way!
https://community.adobe.com/t5/exchange-discussions/extendscript-debugger-2-0-news/td-p/12477923
Copy link to clipboard
Copied
@erinferinferinf has Version 2.0 been released? I will wait for the official release.
When attempting to setup a new computer (Mac Studio Max) I am unable to "Target Illustrator CC 26". All of this is still voodo to me. I'm just lucky it's working on my old iMac. This is the "launch.json" I'm using on both machines. Works on iMac but Mac Studio does not allow me to target Illustrator. How do I target Illustrator? I am not seeing "Select the target application" option in the bottom right of the window.
Copy link to clipboard
Copied
@erinferinferinf has Version 2.0 been released? I will wait for the official release.
By @rcraighead
Not yet, but we have a release candidate... there were a couple of bugs but I think it will be out this month: https://www.adobeprerelease.com/beta/918068DD-4655-4298-925A-1E6EA4BFA84B#tab_downloads
Copy link to clipboard
Copied
Is there a special install proceedure to make "ExtendScript Debugger" work on Apple Silicon? I cannot get "Select the target application" option to appear on Mac Studio, Monterey 12.4.
I see all kinds of comments in the Q&A section of ExtendScript Debugger page:
https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug&ssr=false#qna
Copy link to clipboard
Copied
Is there a special install proceedure to make "ExtendScript Debugger" work on Apple Silicon? I cannot get "Select the target application" option to appear on Mac Studio, Monterey 12.4.
Yes, there is. You need to start VS Code in Rosetta mode (instructions). Once that is done, the extension should load.
This is due to the fact that the extension requires use of an Intel-native framework internally and that cannot be mixed with Apple Silicon code within a single process. As a note, the upcoming V2 extension will also require Rosetta to operate for the time being (due to the exact same internal dependency).
Copy link to clipboard
Copied
Thank you for your response, @good_Miracle0101 . Installing the "Intel" version works.
I'd sure like Adobe to clearly communicate this fact to their customers.
Copy link to clipboard
Copied
The ExtendScript Debugger has just been updated to v2.0.2 and provides an entirely new, overhauled debugging experience. The lack of native M1 support is now messaged at the top of the extension's README and the extension itself will even show a warning notification if it is activated on an unsupported platform (e.g. macOS on Apple Silicon or Windows on ARM). As with v1, the v2 extension can be run on Apple Silicon machines by running VS Code under Rosetta.