Cannot execute script in target engine 'main'! (#1116) Can't start debug session
This error occurs only on Macs
1. Open the file (Mac): "/Applications/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.app/Contents/SharedSupport/Required/cdic/11BTBackend.jsx"
2. Search for the value: 604800000 (line reads bt.timeout = 604800000)
3. Replace that value with 604800 and save
4. Quit ExtendScript Toolkit and relaunch.
The source is here.
Here Adobe posted a long, nicer walk-through of the fix on the Adobe Tech Blog.