Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How Can I See Javascript Script Debugging In Adobe Illustrator CC 2015.0.0?

Community Beginner ,
Dec 20, 2016 Dec 20, 2016

I have written a Javascript script to run in Illustrator so that it can create particular irregular polygon paths for me when I need it. Some of the lines being drawn are not what I was expecting and it's at this point that I would usually add some debugging lines into my code to see what's what. As far as I can tell, in Adobe Illustrator, I need to add the lines

$.write(myValue);

$.writeln(myValue);

In the past, when using previous version of Adobe Illustrator, I can recall a window appearing with my debugging in it. On this current version:

v2015.0.0

I cannot seem to find it anywhere. I have googled this question a bit and I have only come away more confused. How can I see my debugging for my simple script? Do I need a plugin? Can anyone recommend one?

Thanks,

Phedg1

TOPICS
Scripting
50.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 21, 2016 Dec 21, 2016

Use

alert('your message')

Instead of

$.writeln ('your message')

Translate
Adobe
Community Expert ,
Dec 21, 2016 Dec 21, 2016

Are you using the Extendscript app to generate the .js files?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2016 Dec 21, 2016

I am not using Extendscript, I haven't heard of it. I just created an empty .js file using Visual Studio and wrote my code from scratch.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2016 Dec 21, 2016

there was a very handy debugging window pre-CS6, but it was removed

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2016 Dec 21, 2016

Are there any plugins that do an equivalent job? Is 2015 CC before or after CS6? I can't tell.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2016 Dec 21, 2016

CS6 was illustrator version 16. 2015 CC is version 20.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 21, 2016 Dec 21, 2016

I can't believe they'd just remove it without giving us something else to do the job, it makes no sense.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2016 Dec 21, 2016

Moved to the scripting forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Dec 21, 2016 Dec 21, 2016

ExtendScript ToolKit will provide debug messages including breakpoints, function stack data browser.

But if you want a simple log, you can output your message to a log file.

FWIW

Loic

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 21, 2016 Dec 21, 2016

Use

alert('your message')

Instead of

$.writeln ('your message')

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Dec 22, 2016 Dec 22, 2016

for ( i  = 0; i<1000; i++ ) {

     confirm ("Don't you want to throw your computer away now ?" );

}

I won't use modal alerts unless at a final stage. The scenario I am describing here happened to me on some occasions

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 22, 2016 Dec 22, 2016
LATEST

right?, throw that thing away, really, alerts have their place but I think it's absolutely necessary to use the estk and $.writeln for debugging other than the simplest procedures, there's no error free code from the get go.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines