You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated launch.json recommendation for version 2 of the debugger
Changed the instructions for running the debugger now that version 2 is released. Not 100% sure if it's all correct, thsi could be just "what works for me".
This creates a config for VSCode's debugger that attaches to the host app of your choice.
72
+
96
73
Attaching the debugger
97
74
----------------------
98
75
99
76
Once the extension is installed:
100
77
101
78
- Open a JS workspace
102
79
- Launch your Adobe app of choice
103
-
- At the bottom of your VS Code window, at the far right of the status bar, you should see 'Select the target application' glowing yellow
104
-
- Click this and pick the application you want to debug for
80
+
- Select the run and Debug tab from the sidebar or hit Ctrl+Shift+D, then in the drop-down menu choose "extendScript-Debug attach"
81
+
- Choose the host app from the drop-down that appears
82
+
83
+
The bottom Status bar will turn orange indicating that the debugger is now attached to the host app. You can use the debug console to evaluate commands and query variables, even if a script is not running.
Once you've set up your environment and built your script:
114
93
115
-
- In VS Code, Debug > Start Debugging > 'Run Current Script' (or the task name you specified in :ref:`creating-a-debug-launch-task`
94
+
- Click on the status bar button labelled "▷ Eval in `host app name`" to launch the current script, or use the command pallette and choose `ExtendScript - Evaluate Script In Attached Host`.
116
95
- If the script throws any errors, you'll be able to view variables & a call stack
0 commit comments