Setup gdbserver for debugging

Hello, I am new to OpenWrt community. I wanted to know how I can setup gdbserver for remote debugging.
Currently, I have executable in /www/cgi-bin/test I want to remotely debug the test executable from my host. I just have an executable in /www/cgi-bin/
I tried using c lion with the configuration as follows but it doesn't work.