You can do this while debugging (developing your own program).
But you can do this as well as long you have a connection to the device. Simply attach/connect to it (see Hot-Sync: Attach, Connect & Download | MCU on Eclipse).
But of course if you do not have a working connection to the device, or if the device is secured and you cannot access the memory, you cannot read out the content of it ;-).