cortex-debug icon indicating copy to clipboard operation
cortex-debug copied to clipboard

Code not being refreshed into target

Open chetferry opened this issue 8 years ago • 2 comments

If I stop debugging, then modify my code, then recompile. I relaunch the debugger but it is using stale code. Is there a way I can force it to re download the code in the target every time I start a debug session?

chetferry avatar Jun 27 '18 02:06 chetferry

I think you should check whether you save your changed files and compile correctly.

nxyd avatar Jun 27 '18 06:06 nxyd

I am sorry. I made a mistake and had renamed my .elf file. I am embarrassed to say that I was was pointing to an old .elf file that still existed in my build directory next to the new one that was actually getting updated. As soon as I fixed the "executable": field in my launch.json file it worked fine. Pilot error on my part. Thanks for your help.

chetferry avatar Jun 27 '18 15:06 chetferry