The EEProm is not cleared when entering debug mode. The situation you see must have a different cause.
Post your complete project or a shortened version that shows the error so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Attached is the project. It was a test project to make sure I understood how this worked before incorporating it.
There is a variable dontwrite that manages when I want it to write to eeprom.
If you do Debug, then the values for readrow will be 0's.
But the same variable using Debug without programming will have the values that is in E2.
The same is true if I just program the part and run Debug without programming.
Appreciate your time.
EEPROM_Design01.Bundle01.zip 1.6 MB
The problem does not exist when you program the part, only when you go into Debug(with programming).
In Creator you find in workspace explorer settings for the EEProm.
You have set all EEProm area to 0x00 and checked "Include EEProm Data into Hex file". This will -as I understand- let Creator overwrite your EEProm area with zero (0) values.
The settings for Cypress Programmer are different.
Thank you. That was the magic setting I could not find.