Hello shweta,
When you debug ,you can use the "Target Tasks" , it can select the address of erase and program.
You find it on the menu : Window -> show view -> other -> Debug :

When configure , it as this :


About the detail , you can refer to the DOC "Targeting_Microcontrollers.pdf" , it under the CW installation directory :
\CW MCU v10.6\MCU\Help\PDF\Targeting_Microcontrollers.pdf
-> 17.1.4 Configure the Flash Programmer Target Task
Hope it helps
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Have a great day,
Alice