VSCode TypeScript debugging an ExtendScript script
Copy link to clipboard
Copied
This is probably a lost cause, but I'd like to know if there's any way to debug an ExtendScript script that has been transpiled from TypeScript within VS Code.
It seems that this would depend upon the ExtendScript Debugger for VS Code understanding TypeScript and their generated sourcemaps so it could find and stop at breakpoints in the .ts file, as well as show the correct line number when an error occurs.
Right now, I have to first transpile the Typescript (don't worry, I'm making sure it transpiles down to ES3 because ExtendScript is so old), then I have set breakpoints in the generated .js (or .jsx) file, then debug it with the aforementioned ExtendScript Debugger. This is less than ideal, and since it seems unlikely for Adobe to integrate TypeScript debugging with their ExtendScript debugger, I'll probably just have to live with this situation.
Unless I am incorrect and there's some way to set up the debugger in launch.json so I can set breakpoints in the .ts file and have them work?
Perhaps with the "debugServer" launch configuration option, somehow, to leverage another debugger as well? I don't know. Please let me know.
Copy link to clipboard
Copied
We always need to transpile before debugging. Debugger does not support TypeScript.
Additionally, You can refer below. However, Its already discontinued but some forks are still maintaining.

