global variables cleared after ending debug
Posted on 2013-12-08
when the debug dialog pops up and i choose end, my modules' global variables are cleared. why is this so?
i understand that global variables are like static variables just that the scope is global.
Question --> why are my global variables from ALL my modules lost when i click "end" on the debug dialog box?
is the below a possible explanation then?
1) modules are loaded upon access start up
2) when a bug is hit debug dialog pops up
3) if i choose end, the thread of ALL the modules are stopped
a) ALL modules are not running anymore
b) ALL the global variables from ALL the modules are thus lost
4a) when i run my next code by hitting a button or otherwise, the modules are then loaded again
4b) the modules are reset-ted when i hit the end in the debug dialog - e.g. they are stopped immediately and reloaded (but because they did not go through the start up process their global variables are not set)
thanks guys!! = )