Bug in VSCode ExtendScript Debugger: it stops working when a particular string is in the code
For me, the following script does not run in VSC ExtentScript Debugger:
// '<![CDATA[' + str + ']]>'
alert('hello world');I have to remove the first line – yes, the comment – in order to run it.
Tried and reproduces in Photoshop 2021 and InDesign 2020.
(VSC 1.57.1, ExtendScript Debugger 1.1.2, InDesign 15.1.3.302, Photoshop 22.1.1, on macOS 10.14.6/Intel)
I wouldn't have stumbled upon this error, if InDesign's ES API would handle XMP correctly. When I exported a document with some XMP strings that my script had written, in the IDML there were no CDATA markings around my string, which might break the XML with some string content. So I wrote functions to wrap that myself.
