ExtendScript Debugger (ESD) in VS Code - first steps
Dear all,
A crucial detail seems to be that the script to be run/debugged must be from the opened folder. Otherwise I get messages concerning missing/notfound targt although FM is open and the targt is addressed in the script by //@target framemaker
For scripts not needing the connection to FM the folder is not a requirement.
My setup of launch.json:
{ "version": "0.2.0",
"configurations": [
{ "type": "extendscript-debug",
"request": "launch",
"name": "Run current file",
"program": "${file}",
"stopOnEntry": false
}
]
}
Findings
- When Debug is not active F11 switches the display to full screen. Obviously we are in a browser window and F11 triggers the kiosk mode ...
- It is not possible to step into the script with F10/F11 - this ... see above. To step into a script it is necessary to have at least one break point. From there on I can step with F10/11and continue with F5.
- I have not yet tested whether
"stopOnEntry": truewould be helpful here.
- Breakpoints can be set by F9 on the code line or with the statement $.bp(condition)
- For JavaScript construct the automatic completion is already there, but the knowledge of the FM-DOM is a really missing feature.
- I wonder about the responsibility for this product. Information on community.adobe.com/t5/coding-corner/ confuses me.
Display of variables
- VSC provides a drop-down list for Local and Global variables - in ESTK they are not separated
- When hovering over a variable which is not shown in full, the tool tip provides the full contents. This is very convenient for strings containing newlines.
- In contrast to the ESTK Data Browser the display is in my control. I do not see the scroll bar sliding up and down on every step and do not need to wait until has settled and can only then step further...
{BTW I would appraciate a forum feature to highlight inline code appropriately - not just the code blocks}

