My Photoshop launch.json is {
"version": "0.2.0",
"configurations": [
{
"name": "Main",
"type": "extendscript-debug",
"request": "launch",
"hostAppSpecifier": "photoshop",
"engineName": "main",
}
]
} Fantastic. Thank you for providing this! As I mentioned to above your "hostAppSpecifier" field (the BridgeTalk "target" or Application Specifier) is ambiguous. Technically "photoshop" can refer to every version of Photoshop that you have installed. I believe that by default it attempts to refer to the installation with the highest version, but I could be wrong. In general, best practice if you are working with multiple installations of a host application at the same time (as you are in your instance) would be to ensure that you include the version number. Those are actually shown in the list presented by VS Code: As you can see above, Photoshop 2021 is actually "photoshop-150.064". As the version number attached to CC 2019 is 130.064, Photoshop 2020 would be 140.064. As such, I would recommend that you try using the following Launch Configuration: {
"version": "0.2.0",
"configurations": [
{
"name": "Launch Main - Photoshop (latest)",
"type": "extendscript-debug",
"request": "launch",
"hostAppSpecifier": "photoshop",
"engineName": "main",
},
{
"name": "Launch Main - Photoshop 2020",
"type": "extendscript-debug",
"request": "launch",
"hostAppSpecifier": "photoshop-140.064",
"engineName": "main",
}
]
} This will provide you with two launch options: Launch Main - Photoshop (latest) - This will start a debug session in the latest version of Photoshop installed on the computer. As it is a Launch-mode session, the debug session will end as soon as the script completes processing. Launch Main - Photoshop 2020 - This will start a debug session in Photoshop 2020. As it is a Launch-mode session, the debug session will end as soon as the script completes processing. As I'm sure you're aware, the Photoshop in question will need to be running when starting either of the above debug sessions. As for why Photoshop 2020 isn't showing up in the VS Code extension's found target list, the only thing I can think of here is that something unfortunate happened during the Photoshop 2020 installation process that resulted in the application not properly registering itself with the necessary detabases. Reinstallation of Photoshop 2020 might fix it, if that's something you can work out with Adobe themselves. Either way, please give the above launch configurations a shot!
... View more