java - What code changes are automatically reflected in eclipse in debug mode? -


i use eclipse (to write, debug ) ide. in debug mode when make changes,like initializing local variable, reflected automatically.

but other changes changing value of static variable; message saying need restart vm , don't.

now question sort of changes automatically reflected , doesn't.

i use remote debugging, there difference when running program eclipse?

it not ide feature, vm feature of remote debugging. vm can handle simple changes in logic inside methods of variable initializers, can't treat changed class structure.

the reloading treated normally, when class structure doesn't change: don't remove or add members, methods or inner classes, because adding members or inner classes changes size of allocated class memory. methods doesn't change memory size, changes structure.

here can find explanations.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -