idleberg / vscode-applescript

Language syntax and snippets for AppleScript
https://marketplace.visualstudio.com/items?itemName=idleberg.applescript
MIT License
70 stars 8 forks source link

Debugging JXA? #26

Closed Detnator-Neo closed 3 years ago

Detnator-Neo commented 3 years ago

I kind of want to resurrect this "issue" : https://github.com/idleberg/vscode-applescript/issues/6 . It's been three years since that question was asked, and a lot can change in that time.

Here's JXA as I understand it, more or less:

Of course there's the issue that both AppleScript scripts and JXA scripts are typically .scpt or .scptd -- binary files -- that VSCode doesn't open in any particularly useful way. So a reasonable workflow for AS and JXA seems to be do the coding in text files and then compile them to .scpt/d files to run them.

As noted by MichaelTX in that issue the Mac has built in debugging for JXA using the Safari browser debugger, which is... ok... but not great.

I've just posted another issue asking about AppleScript debugging, and I have the same request here. I'm looking/hoping for an experience that's similar to VSCode's built in Node debugging but with JXA scripts.

I have no idea what's involved in building a debugger. I imagine it's a lot of work. I think whoever wrote VSCode's node debugging has done a great job. I'd love to see something that has a very consistent experience for JXA (and AppleScript) also.

Is this somehow already in this AS plugin and I'm not seeing it? I'm guessing not, and if so, what would it take to add it?

Thanks!

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 14 days with no activity.