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

VS Code - $.writeln

Explorer ,
Dec 01, 2022 Dec 01, 2022

Copy link to clipboard

Copied

Is there a way to print out variable values into the VS Code's variable section or print it to the console? The variable section is always empty and the watch section is always returning 'not available' massage for variables when running a script.

TOPICS
Scripting , SDK

Views

763

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

correct answers 1 Correct answer

Explorer , Jan 28, 2023 Jan 28, 2023

Justin thank you for your response. I found the solution by using attach mode when running scripts in VS Code

Votes

Translate

Translate
Community Expert ,
Jan 27, 2023 Jan 27, 2023

Copy link to clipboard

Copied

Are you on the latest version of the VS Code ExtendScript extension? Variables will only be updated when hitting a breakpoint, but $.writeln() should show up in the terminal.

Votes

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
Explorer ,
Jan 28, 2023 Jan 28, 2023

Copy link to clipboard

Copied

Justin thank you for your response. I found the solution by using attach mode when running scripts in VS Code

Votes

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
Community Expert ,
Jan 29, 2023 Jan 29, 2023

Copy link to clipboard

Copied

Great to hear it's working!

Votes

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
Contributor ,
Oct 25, 2024 Oct 25, 2024

Copy link to clipboard

Copied

Hi, what exactly did you do?
My configuration looks like this and it doesn't work

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "extendscript-debug",
      "request": "launch",
      "name": "Attach to ExtendScript Engine",
      "program": "${file}",
      "stopOnEntry": false,
    }
  ]
}


 

Votes

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
Community Expert ,
Oct 25, 2024 Oct 25, 2024

Copy link to clipboard

Copied

Are you looking in the Debug Console?

Votes

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
Contributor ,
Oct 26, 2024 Oct 26, 2024

Copy link to clipboard

Copied

Yes, there's nothing there.

Harchenko_1-1729932324847.png

 

Votes

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
Community Expert ,
Oct 28, 2024 Oct 28, 2024

Copy link to clipboard

Copied

Is the code actually executing in AE? If you add an alert() will that show up in AE?

Votes

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
Contributor ,
Oct 29, 2024 Oct 29, 2024

Copy link to clipboard

Copied

Yes, sure.
The code is executed but the Dedug Console is empty

Harchenko_0-1730187398232.png

 

Votes

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
Community Expert ,
Oct 29, 2024 Oct 29, 2024

Copy link to clipboard

Copied

Strange, maybe try reinstalling the VS Code extension

Votes

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
Contributor ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

I have already done all this, periodically over several years. All I have to do is try to reinstall the system, but I won't do it for the Debug Console))

Votes

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
Community Expert ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Hmm, does it do it with other apps beside AE? Also have you tried re-installing VS Code?

Votes

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
Contributor ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Doesn't work in AE, PP, PS.

Votes

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
Contributor ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Reinstalling VS Code helped.
Thank you

Votes

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
Community Expert ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Awesome!

Votes

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
Advocate ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Try this:

screenshot.png

 

 

Votes

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
Contributor ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

In my case it doesn't work.

upd.
After reinstalling VS Code works.
Thank you, useful information

Votes

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
Advocate ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

LATEST

I don't think so. 🤔

 

Look at your screenshot

screenshot_1.png

 

You probably simply evaluate the script 

 

My window:

screenshot.png

 

 

 

Votes

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