Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


vcCode debugger extension issues & how tos?

Participant ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

Hey

 

Few question to go with ExtendedScript debugger from adobe extension

1. How can I make it stop breaking/crashing ? I used in past adobe toolkit and it never did that. Sadly that tool is no longer developed and vsCode one crashes every 5 mins. Its very difficult to debug a long running process/app if mid way debugging it breaks and crashes. Does any1 have any suggestions?

2. Where can I get autocomplete files, say 

        idMk = charIDToTypeID("Mk  ");
Is just red for me. I need the charIDToTypeID and other adobe functions from somewhere. Any ideas?
3. Any recomendations to improve code writing for adobe products?
 
TIA
TOPICS
Actions and scripting, Cross-app workflows, macOS, SDK, Windows

Views

87

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

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
Participant ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

Hey

Yeh I know these parts.

I cant get this one to work

            "targetSpecifier": "photoshop-140.064"

My Ps version is 23.0.1 or something like that, not matte what I type it does not "specify" it properly.

"photoshop-23.0.1"
"photoshop-23.0.1.064"
"photoshop-23.0.1.64"
etc etc.

I keep having to manually re-configure it after each crash ;- ((((

Other stuff I'm aware off, none of which fixes missing members/functions of types/etc that they suggest to use. 

 

 

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

the #target directive does not have to be specified in the configuration file, it works fine in the body of the script (just as it once did in the ESTK).

 

#target photoshop-160.064
or
#target photoshop

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

1. Use alternative ways of debugging - writing logs to the console using $.writeln (), for example.

2. Types for AdobeExtendScript Development Pack
All functions are in the documentation. Nobody forbids you to create your own templates or put functions in variables so that everyone does not type them every time. For example charIDToTypeID many abbreviate to cTT or c2t 

Likes

Translate

Translate

Report

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
Participant ,
Nov 20, 2021 Nov 20, 2021

Copy link to clipboard

Copied

1. thank you for the $.writeln ! What is it, How do you know about it? I was always using alert() as I had no idea writeln  exist ! whhh

This helps lots!!

2. Mmm yeah I have it, but half the stuff is missing :- (

 

Thanks for links & info!

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
4 hours ago 4 hours ago

Copy link to clipboard

Copied

LATEST

.toSource() is also useful at times (except for when it returns nothing):

 

alert( myVar.toSource() )

 

More on the Dollar ($) object in the JavaScript Tools Guide PDF or here:

https://extendscript.docsforadobe.dev/extendscript-tools-features/dollar-object.html

 

debug-console.png

Likes

Translate

Translate

Report

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