Skip to main content
dublove
Legend
June 3, 2026
Answered

How do you debug Illustrator scripts? When I test them using VS and ScriptShonTrees, I don’t see any line numbers.

  • June 3, 2026
  • 3 replies
  • 47 views

Hi everyone.

I don’t know what’s going wrong.
I have to keep testing by using `alert(“00”);`.
I tried using `exit();` to stop the program, but it seems like Illustrator doesn’t support `exit();`?

Correct answer CarlosCanto

Here’s a debugging tutorial using VSCode

 

you could also use the old ESTK if you’re on Windows

3 replies

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
June 3, 2026

Here’s a debugging tutorial using VSCode

 

you could also use the old ESTK if you’re on Windows

dublove
dubloveAuthor
Legend
June 3, 2026

@Ton Frederiks 

Thank you very much

But I looked through them for a long time, and there are just too many of your posts—I couldn’t find it.
What are you talking about? I haven’t seen anything you mentioned.

Ton Frederiks
Community Expert
Community Expert
June 3, 2026

@dublove Here is the Scripting tag.

dublove
dubloveAuthor
Legend
June 3, 2026

This?

oh, my god~

 

Ton Frederiks
Community Expert
Community Expert
June 3, 2026

@dublove It is useful to add the Scripts tag to posts about scripting to awaken the scripting gods.

I have added one to this post.