This forum is for Codeblocks only, if you need help with Atmel Studio try their forum or support. If you want to debug your Arduino code with CB, first of all you'll need a gdb-server that can interface ICE. You should check avarice documentation to see if it's possible. If not, then you're very much out of options, not even considering all the hassle to configure avr-gdb (whatever) for Arduino under CB.