No, AFAIK --
tells Bash to stop parsing the following arguments as Bash arguments, they’re then sent as-is to the script.
Could you explain what you’re observing in the script, which breaks under the debugger?
Could you run this script with Debug and the same arguments you’re passing to your other script:
#!/usr/bin/env bash
echo "Script parameters:" "$@"
With Bash 5, I’m seeing the arguments as expected:
There may be minor differences when a script is executed under a the debugger. With some more context, I might be able to provide a workaround.
Thanks!