Bug? Commented lines edited while in debug still run

alwaysbusy

Expert
Licensed User
Longtime User
Since B4J 6.30, I sometimes get that my editing of the code in debug mode is not used when I continue. e.g. in the below image, I commented out some lines, pressed save and continued running the app and it still goes through the commented code. When I stop the app and rerun it the commented lines are correctly ignored.

upload_2018-6-22_14-29-19.png
 

Cableguy

Expert
Licensed User
Longtime User
If I understand correctly, when in debug mode, editing, saving and resuming may sometimes give wrong results as some parts of the code being executed may not the updated... I usually do a "stop/start" of my debug mode just to prevent this... also cleaning up (ctrl+p) also helps a lot
 

alwaysbusy

Expert
Licensed User
Longtime User
I usually do a "stop/start" of my debug mode
Indeed, but it used to work fine and it was a big advantage to be able to edit code at run time over other tools. and most of the time it works, just now and then it doesn't and then you are kind of puzzled why your code does not work ;)
 
Top