简体   繁体   中英

Changing variables in realtime when debugging in intellij?

When debugging in eclipse, I believe you are able to change the value of a variable in the source and have it update in realtime without setting breakpoints or anything. I was wondering if the same was possible in intellij?

Same question but for eclipse.

You can reload classes while running your program in Debug mode and changes in code will apply if possible (there are limitations) without restarting the program.

To reload changed classes

Do one of the following:

  • On the main menu, choose Run -> Reload Changed Classes.
  • On the main menu, choose Build -> Compile "class_name" to recompile an altered class during debug.

Not aware about any other method to change the value of a variable "in real-time".

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