Skip to main content
StefanStehlik
Inspiring
December 1, 2022
Answered

VS Code - $.writeln

  • December 1, 2022
  • 2 replies
  • 2839 views

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.

This topic has been closed for replies.
Correct answer StefanStehlik

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

2 replies

Legend
October 30, 2024

Try this:

 

 

Inspiring
October 30, 2024

In my case it doesn't work.

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

Legend
October 30, 2024

I don't think so. 🤔 🤔

 

Look at your screenshot

 

You probably simply evaluate the script 

 

My window:

 

 

 

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 27, 2023

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.

StefanStehlik
StefanStehlikAuthorCorrect answer
Inspiring
January 28, 2023

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

Justin Taylor-Hyper Brew
Community Expert
Community Expert
January 29, 2023

Great to hear it's working!