<html>
<body>
<h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204,… 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Summary</h2><p style="white-space: pre-wrap; margin-top: 0.1em; margin-bottom: 0.2em; unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">With v2.0.2 the debugger attaches to InDesign and stops at breakpoints as expected. But as soon as I type an expression that touches the InDesign DOM (e.g. <code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">app.name</code>) into the VS Code <strong>Debug Console</strong> while paused, InDesign crashes. I don't even have to press Enter, typing is enough. The same thing happens when debugging a UXP plugin (panel), not only scripts. Expressions that only use plain script variables work fine.</p><h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Environment</h2>
|
-- | --
Extension | jaroslavbereza.uxpdebugger 2.0.2 (win32-x64)
VS Code | 1.139.1
Host app | Adobe InDesign 2026 (21.6.0)
OS | Windows 11 Pro (10.0.26300). The same behavior happens on macOS
<h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Steps to reproduce</h2><ol style="padding-inline-start: 2em; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><li style="unicode-bidi: plaintext;">Create<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">test.idjs</code>:<div class="codeBlockWrapper_-a7MRw" style="position: relative; margin: 8px 0px;"><button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard" style="color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(30, 30, 30); border: 0.666667px solid rgba(204, 204, 204, 0.2); cursor: pointer; opacity: 0; display: flex; border-radius: 4px; justify-content: center; align-items: center; padding: 4px; transition: opacity 0.15s, background 0.15s; position: absolute; top: 4px; right: 4px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon" class="copyIcon_CEmTFw"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5v-3.379a3 3 0 0 0-.879-2.121l-3.12-3.121a3 3 0 0 0-1.402-.791 2.252 2.252 0 0 1 1.913-1.576A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z" clip-rule="evenodd"></path><path d="M3.5 6A1.5 1.5 0 0 0 2 7.5v9A1.5 1.5 0 0 0 3.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L8.44 6.439A1.5 1.5 0 0 0 7.378 6H3.5Z"></path></svg></button><pre style="overflow-x: auto; white-space: pre; color: rgb(204, 204, 204); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(10, 10, 10, 0.4); box-sizing: border-box; border-radius: 4px; max-width: 100%; margin: 0px; padding: 8px;"><code class="language-js" style="font-family: monospace; color: inherit; background: 0px 0px; padding: 0px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">const { app } = require("indesign");
main();
function main() {
app.documents.add();
}
</code></pre></div></li><li style="unicode-bidi: plaintext;">Set a breakpoint on line 6 (<code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">app.documents.add();</code>).</li><li style="unicode-bidi: plaintext;">Run the script with the UXP debugger. It attaches and pauses at the breakpoint (so far so good).</li><li style="unicode-bidi: plaintext;">Open the<span> </span><strong>Debug Console</strong>, select the<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">UXP – test.idjs (InDesign)</code><span> </span>session and type<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">app.name</code>.<span> </span><strong>Don't press Enter.</strong></li></ol><h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Expected behavior</h2><p style="white-space: pre-wrap; margin-top: 0.1em; margin-bottom: 0.2em; unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">The console shows autocomplete suggestions, and pressing Enter evaluates the expression (<code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">app.name</code> → <code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">"Adobe InDesign"</code>). InDesign keeps running.</p><h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Actual behavior</h2><ul style="padding-inline-start: 2em; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><li style="unicode-bidi: plaintext;">InDesign crashes right away with its crash dialog:<span> </span><em>"InDesign muss aufgrund eines Fehlers geschlossen werden."</em><span> </span>(InDesign must close because of an error).</li><li style="unicode-bidi: plaintext;">VS Code shows:<span> </span><em>UXP: "test.idjs" was unloaded — the debug session has been stopped.</em></li><li style="unicode-bidi: plaintext;">The Output channel shows nothing new at the moment of the crash. This line was already there when the breakpoint was hit:<div class="codeBlockWrapper_-a7MRw" style="position: relative; margin: 8px 0px;"><button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard" style="color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(30, 30, 30); border: 0.666667px solid rgba(204, 204, 204, 0.2); cursor: pointer; opacity: 0; display: flex; border-radius: 4px; justify-content: center; align-items: center; padding: 4px; transition: opacity 0.15s, background 0.15s; position: absolute; top: 4px; right: 4px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon" class="copyIcon_CEmTFw"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5v-3.379a3 3 0 0 0-.879-2.121l-3.12-3.121a3 3 0 0 0-1.402-.791 2.252 2.252 0 0 1 1.913-1.576A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z" clip-rule="evenodd"></path><path d="M3.5 6A1.5 1.5 0 0 0 2 7.5v9A1.5 1.5 0 0 0 3.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L8.44 6.439A1.5 1.5 0 0 0 7.378 6H3.5Z"></path></svg></button><pre style="overflow-x: auto; white-space: pre; color: rgb(204, 204, 204); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(10, 10, 10, 0.4); box-sizing: border-box; border-radius: 4px; max-width: 100%; margin: 0px; padding: 8px;"><code style="font-family: monospace; color: inherit; background: 0px 0px; padding: 0px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">[Info] [general] Waiting for the debugger to attach. Please open chrome://inspect in Chrome to continue the execution.
[Error] [console] Unhandled promise rejection false
</code></pre></div></li></ul><h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Additional observations</h2><ul style="padding-inline-start: 2em; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><li style="unicode-bidi: plaintext;"><strong>Plugin debugging is affected too:</strong><span> </span>while paused inside a UXP panel plugin, any Debug Console expression that queries the InDesign DOM crashes InDesign. Plain script variables can be evaluated without problems.</li><li style="unicode-bidi: plaintext;"><strong>Output when resuming from the breakpoint (without touching the console):</strong><div class="codeBlockWrapper_-a7MRw" style="position: relative; margin: 8px 0px;"><button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard" style="color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 13px; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(30, 30, 30); border: 0.666667px solid rgba(204, 204, 204, 0.2); cursor: pointer; opacity: 0; display: flex; border-radius: 4px; justify-content: center; align-items: center; padding: 4px; transition: opacity 0.15s, background 0.15s; position: absolute; top: 4px; right: 4px;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon" class="copyIcon_CEmTFw"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5v-3.379a3 3 0 0 0-.879-2.121l-3.12-3.121a3 3 0 0 0-1.402-.791 2.252 2.252 0 0 1 1.913-1.576A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z" clip-rule="evenodd"></path><path d="M3.5 6A1.5 1.5 0 0 0 2 7.5v9A1.5 1.5 0 0 0 3.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L8.44 6.439A1.5 1.5 0 0 0 7.378 6H3.5Z"></path></svg></button><pre style="overflow-x: auto; white-space: pre; color: rgb(204, 204, 204); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(10, 10, 10, 0.4); box-sizing: border-box; border-radius: 4px; max-width: 100%; margin: 0px; padding: 8px;"><code style="font-family: monospace; color: inherit; background: 0px 0px; padding: 0px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">[Info] [general] Waiting for the debugger to attach. Please open chrome://inspect in Chrome to continue the execution.
[Default] [console] disableWholeMediaPanel
[Error] [console] Unhandled promise rejection false
[Error] [console] Unhandled promise rejection false
[Error] [console] Unhandled promise rejection false
[Default] [console] Wed, 30 Sep 2026 12:55:18 GMT [HS] [Performance] 154362 PERF - Get SAM Assets for recentFiles start
[Default] [console] [mobx.trace] 'Ho.render()' is invalidated due to a change in: 'Ho@760.recentsProps'
[Default] [console] Wed, 30 Sep 2026 12:55:18 GMT [HS] [Recents] [Performance] Recents rendering 162080
[Default] [console] Wed, 30 Sep 2026 12:55:18 GMT [HS] [Recents] [Recents#render] elements= 19 assets= 20
[Default] [console] Wed, 30 Sep 2026 12:55:18 GMT [HS] [InDesign] CCX-Start-InDesign: Recent list changed from MRUFileListChanged. No of items = 19
[Default] [console] Wed, 30 Sep 2026 12:55:18 GMT [HS] [Performance] log perf event: time: 251 message: Get SAM Assets for recentFiles
...
</code></pre></div>The<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">[console]</code><span> </span>messages are CDP protocol messages from UXP content running in InDesign (the<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">[HS]</code><span> </span>lines come from the InDesign Home screen). They are not produced by the debugger itself. Where the<span> </span><code style="font-family: monospace; color: rgb(215, 186, 125); background: none 0% 0% / auto repeat scroll padding-box border-box rgba(255, 255, 255, 0.1); padding: 2px 4px; border-radius: 3px; word-break: break-word; font-size: 0.9em;">Unhandled promise rejection false</code><span> </span>messages come from is unclear.</li></ul><h2 aria-level="5" style="unicode-bidi: plaintext; color: rgb(204, 204, 204); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(37, 37, 38); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">Screenshots</h2>
Paused on the breakpoint (variables, call stack, Output channel)
<img width="945" height="567" alt="Image" src="https://github.com/user-attachments/assets/a5f7c449-f904-4627-9d37-b48ac4b1f9e5" />
Typing app.name in the Debug Console → session stopped notification
<img width="945" height="518" alt="Image" src="https://github.com/user-attachments/assets/d3e26cc8-de0e-4496-9ffe-4ec49851eb9b" />
InDesign crash dialog
<img width="945" height="756" alt="Image" src="https://github.com/user-attachments/assets/66d84bc5-927f-41dd-92c5-d2bd538f9862" />
Output channel after the crash
<img width="945" height="230" alt="Image" src="https://github.com/user-attachments/assets/b507584e-7cee-40de-a50b-1b386c7014ef" />
</li></ol><br class="Apple-interchange-newline">
</body>
</html>