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

Can you use VSC Debugging with JXA Files? #6

Closed JMichaelTX closed 4 years ago

JMichaelTX commented 6 years ago

Can you use VSC Debugging with JXA Files?

In Script Editor, this requires an elaborate, unreliable setup using Safari Debugger. If we can use VSC, could you please provide detailed steps to do so.

Thanks.

idleberg commented 5 years ago

Can JXA be debugged with any of the command-line tools (e.g. osascript)? If that's the case, please provide some details.

JMichaelTX commented 5 years ago

@idleberg , thanks for your reply. AFAIK the only way to debug JXA is using the Safari Browser Debugger, invoked from running a JXA script in the Script Editor.app. Here is video showing how to do this: https://youtu.be/qjse_iMJg18