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

$ .writeln doesn't work in vscode(ESTK debugger)

Explorer ,
Nov 11, 2019 Nov 11, 2019

Copy link to clipboard

Copied

I am a macOS user and recently updated to Catalina.
I found late that I couldn't run ESTK in Catalina.

 

ExtendScript Debugger Extensions for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug

 

As a workaround I am using ESTK debugger in VS code.
But when I use $ .writeln there is no response.

 

Do you know how to return results to VSCode's debug console?
Please answer, Thanks.

TOPICS
Scripting

Views

2.1K

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

Adobe Employee , Jan 22, 2020 Jan 22, 2020

Oh no, I just noticed this when I searched for "ExtendScript Debugger" to find a particular thread.

 

Back in October, someone else reported the same issue in this prerelease group. writeln started working the next day, mysteriously, so hopefully your issue is already solved.

 

If not, and for future search results, here's something to try:

 

Did you perhaps have multiple Visual Studio Code windows open? It is extremely important to note that the ESD Plugin can only be active in a single Visual

...

Votes

Translate

Translate
Adobe Employee ,
Jan 22, 2020 Jan 22, 2020

Copy link to clipboard

Copied

Oh no, I just noticed this when I searched for "ExtendScript Debugger" to find a particular thread.

 

Back in October, someone else reported the same issue in this prerelease group. writeln started working the next day, mysteriously, so hopefully your issue is already solved.

 

If not, and for future search results, here's something to try:

 

Did you perhaps have multiple Visual Studio Code windows open? It is extremely important to note that the ESD Plugin can only be active in a single Visual Studio Code window by default. As a result I highly recommend using the following workflow when dealing with the current ESD Plugin:

  1. Open the Extensions pane in Visual Studio Code.
  2. In the Enabled section, locate the ExtendScript Debugger entry.
  3. Click the cog icon to open the options.
  4. Select Disable.
  5. In the Visual Studio Code window that you want to use for ExtendScript debugging, find the Disabled section of the Extensions pane.
  6. Locate the ExtendScript Debugger entry.
  7. Click the cog icon to open the options.
  8. Select Enable (Workspace).

When you're done debugging, run through steps 1-4 again. This ensures that the ESD Plugin will only run in a single instance of Visual Studio Code, eliminating the issue wherein you have multiple instances fighting each other for access to the underlying communication layer used to talk to host apps.

 

Read this thread for a very detailed critique of the ES Debugger plugin, in it's current state.

 

If you find that the debugger really doesn't cover your use cases and you still need ExtendScript Toolkit, here are some options:

 

- Create a partition on your Mac fo running Mojave
- Bootcamp your mac & install Windows on a partition (ESTK works better on Windows)
- Try https://www.macincloud.com/
- Try a Windows VM
- Parallels' Bootcamp: https://www.parallels.com
- Wait for our ES Debugger to go open source
- Upgrade a VM to run older MacOS versions

 

Also if you've lost ExtendScript Toolkit in the upgrade and need to download it, you can find it in our CEP github resources repo here.

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 ,
Nov 30, 2021 Nov 30, 2021

Copy link to clipboard

Copied

I encountered this issue on a PC a while back and the above steps worked. I recently encountered it on an M1 pro Macbook, but the above steps didn't work.

I tried a bunch of things, including checking out previous git commits to see where it started, but that didn't work.

 

Then I simply tried renaming the whole folder, running a script and presto, the console was bac. And so far it has stayed working, having re connected it in git. I don't have an explanation.

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 ,
Mar 01, 2022 Mar 01, 2022

Copy link to clipboard

Copied

I was just having this same problem, and I only had one instance of VSCode open. I simply closed VSCode and opened it again, and voilà `$.writeln` started working again.

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
People's Champ ,
Jul 13, 2023 Jul 13, 2023

Copy link to clipboard

Copied

LATEST

The issue still happens in July 2023.

I found that I needed to close both VS Code and the parent app (InDesign in this case). Restarting both brought $.writeln() back...

I think the reason is that I had ESTK open previously, so even though it was now closed, the debugger was possibly somehow rerouting $.writeln commands to ESTK...

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