简体   繁体   中英

java Intellij Change variables in runtime like in Eclipse

In Intellij, i want to change the position of an object (thats is being drawn on a render method thats is being called every frame) while im debugging, like in Eclipse. Thing is, in Eclipse the changes are taken when you save the file, but here im not able to do it, the file is autosaved but it doesn't take/compute the changes i made.

my code is something like:

public void render () {
 triangle.setPosition(1, 1);
}

then change it while debugging:

public void render () {
 triangle.setPosition(3, 3);
}

but nothing happens.

i dont know how can to search in google for this and if its posible like in Eclipse.

In IntelliJ you must compile changed files (shortcut: Ctrl + Shift + F9)

See: How to enable Intellij hot code swap and http://www.jetbrains.com/idea/webhelp/debugger-hotswap.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM