Adobe-Illustrator – How to debug a script that seriously rely on the existing Illustrator document?

I am using Adobe Illustrator CS5 and ExtendScript Toolkit CS5.

I have a very complicated script and alert() no longer works because things are in In a loop. How can I simulate the fact that I use a specific Illustrator document so that I can use the debugging features of the ExtendScript Toolkit?

I want it to be the same as in the Illustrator document and using “File-> Scripts-> Scriptname”. If I just test the script in ExtendScript, I will get an error

< /p>

if (app.documents.length> 0) {

Thank you!

solved!

I have to change the target application to Illustrator in ExtendScript Toolkit and set the debug level to $.level=2 to make it work. I can now have breakpoints and all good things .

I am using Adobe Illustrator CS5 and ExtendScript Toolkit CS5.

I have a very complicated script and alert() is no longer Works because things are in a loop. How can I simulate the fact that I use a specific Illustrator document so that I can use the debugging features of the ExtendScript Toolkit?

I want it to be the same as in the Illustrator document and using “File-> Scripts-> Scriptname”. If I just test the script in ExtendScript, I will get an error

< /p>

if (app.documents.length> 0) {

Thank you!

Solved!

I have to change the target application to Illustrator in ExtendScript Toolkit and set the debug level to $.level=2 to make it work. I can now have breakpoints and all good things .

Leave a Comment

Your email address will not be published.