DUE debugging using AtmelStudio7 (Vmicro installed) and Atmel ICE through JTAG

Hi everyone,
This is my first post, so thank you all for the support.

I am trying to use the debugging capabilities that Atmel ICE offers. Until now, my debugging involved using prints over serial communication, but I need to be able to set breakpoints, step by step program execution and variables viewing on Atmel Studio.

Physical setup:
My board is an Arduino DUE, and I have purchased an Atmel ICE BASIC package, which includes the Atmel ICE and a DC flat cable with 10-pin 50-mil connector and 6-pin 100-mil connector. I was trying to use directly the supplied cable connecting the SAM port of the ICD with the JTAG port of the DUE. DUE board and ICE are powered through USB cable.
I didn’t modify anything in the PCB layout of the DUE board.

Software:
Atmel Studio 7, with Vmicro installed linked to Arduino IDE.
Using a simple example project that already works when deployed without ICD hardware setup.
Selected debugger: Atmel ICE over JTAG. JTAG clock: 1MHz. Rest of settings left by default.
Then solution configuration set to Debug, and to Hardware: Atmel ICE as debugging tool.
[Image attached]

Resoult:
After compiling, I press Start Debugging and Break, and it conects to the COM port to which the DUE board is connected to the PC, and loads the program. After that, no debugging is happening, program is not running online, and neither is stopping at breakpoints.
If i power up the DUE buard through a USB port without communication to the PC, Atmel doesn’t alow me to programm the device, thus, I understand that it was loading the programm directly to the DUE board and not using the ICE, although it was selected the solution configuration as Debug:Hardware->AtmelICE.

I have tried several things to try figure out how to propperly debug using this ICE, but I had no success.
Please, if anyone has any idea on how to do that, it would be much appreciated.
Thank you,
MRICO.

OK I have managed to solve the issue! I will write it down for anyone who may need it in the future.

The problem was that I wasn't selecting Atmel ICE as programmer and debugger in vMicro settings:

· In "Debugger" tab select Hardware: Atmel ICE.
· In "Uploader" tab select Hardware Programer: Atmel Studio Device Programming, and enable programmer for uploads.

Now Atmel Studio is programing and debugging through Atmel ICE.