Arduino IDE Debugging feature

I am using macOS Apple M2 Pro, IDE 2.2.1.

I would like to use this debugging feature on AMB82 Mini. However, on MacOS I am unable to enter gdbserver successfully. It works on other OS (Windows and Linux)
This is the error I'm getting.

Please advice.

Thank you!

there was also this post which remained unanswered but some more discussion here