Running debugger on `yarn rw exec script`

Hi all,
would like to know how i can start the debugging service on yarn rw exec some_long_running_script
i tried adding --inspect but it doesnt register. the help menu doesnt have it either. i want it to be running similar to when i do yarn rw dev

Hi. Could you explain a bit more about how you use the debugger in dev?

I assume you are using VSCode? Are you debugging the api or web side?

Hi,

This is on a script, so neither the api side nor the web side.
yes i am using vscode