Solved
Is it possible to change the registers value in the debug mode while the code is running.
I'm able to change the register value eg. CCR register for duty cycle but first i have to suspend the program and then change the value and then resume it again. Whenever i try to change the value while the code is running it throws me an interrupt error.

