help with debugging an inDesign palette script from VSC
hi all, I have quite a bit of experince with scriptUI for After effects but have hit a stumbling block with my first inDesign script.
the script needs to add pages to the document but this is not possible using a 'dialog' window. I switched to a palette window but it won't show up when launched from VSC. I read somewhere that #targetengine "session"; doesn't work with the VSC extendscript debugger. So I tried placing the script directy in the scripts panel folder and the palette now loads great, but I can't debug it.
I've tried a few differnt launch.json configs but really have no idea what is going on.
if anybody could walk me through how to run and debug an inDesign palette from VSC it woudl be much appreciated.

