Did you had a look to this post? → Cannot debug in Embedded GDB mode
And please note we’ve a bug with configured port persistence in the debug configuration: if you want to use something else that the default port (I mean the first one in the ports lists), you’ll have to reconfigure it every time in the debug config dialog.