Programming Arduino libraries on ATMega32 using AVR Studio 6 and Debugging

Hello all,

I am porting my arduino code for atmega32 on AVR Stdio 6 for enabling debugging procedure. It compiles well in avr studio 6 but when i burn my code using option
Debug-->Start Debugging and Break i get this error " ISP on JTAG mkII does not support debugging, Device is only programmed. Use start without Debugging to avoid this message".

When i change programming interface from ISP to JTAG it says "Target device is not a part of JTAG Daisy chain".
On hardware side i am using spi lines and reset line is pulled up using a 10K resistor.

Please tell me how to enable debugging . Is there is any fuse setting required to change for this.

Thank You.