|
|
View previous topic :: View next topic |
Author |
Message |
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
Debugger: is it possible to change the value or a variable? |
Posted: Wed Jul 03, 2019 7:53 am |
|
|
I've worked with debuggers that allow me to alter the value of a variable while the program is paused. My search through the help file didn't seem to indicate this was possible.
Is there a way to alter a variable inside the debugger? I am running without any type of console, and would like to be able to alter a variable during debugging to run different test functions without having to alter code and rebuild each time.
Thanks! _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Wed Jul 03, 2019 8:45 am |
|
|
What IDE are you using?
With MPLAB IDE is pretty easy.
Open a Watch Window add the variable, run the code, halt the code, edit the variable and run again. _________________ Electric Blue |
|
|
allenhuffman
Joined: 17 Jun 2019 Posts: 554 Location: Des Moines, Iowa, USA
|
|
Posted: Fri Jul 05, 2019 9:56 am |
|
|
E_Blue wrote: | What IDE are you using?
With MPLAB IDE is pretty easy.
Open a Watch Window add the variable, run the code, halt the code, edit the variable and run again. |
Alas, we use CCS C Compiler's IDE. Thanks. It is good to know there is an option out there if we are ever able to switch. _________________ Allen C. Huffman, Sub-Etha Software (est. 1990) http://www.subethasoftware.com
Embedded C, Arduino, MSP430, ESP8266/32, BASIC Stamp and PIC24 programmer.
http://www.whywouldyouwanttodothat.com ? |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|