IntelliJ - debug without suspending the program?

Answered

Hey!

I am currently trying to debug a program. Can I change variables without suspending the program, aka while it is running? And, can I get variables without suspending the program, and "save" them so I can edit them anytime?

 

Thanks!

0
4 comments
Avatar
Yaroslav Bedrov

Hello,

Currently it's not possible. Could you please describe your use case?

 

0
Avatar
Permanently deleted user

Hi!

My use case: I am developing a plugin for a server of a video game. If I suspend the execution, all players on the server will time out after 30 seconds, as the server will no longer send "Connection keep alive packets". If the action that needs to be debugged has to be triggered by a player, this means that I effectively only have 30 seconds to debug, as after that time period, the player will be kicked, and the server resumes running, ending my debugging suspension.

0
Avatar
Yaroslav Bedrov

Feel  free to create feature request on YouTrack: http://youtrack.jetbrains.com/issues/IDEA.

Probably you could suspend only current thread (it's possible to configure it in breakpoint settings)?

0
Avatar
Permanently deleted user

I will create a feature request later, thanks! :)

Sadly the server itself is mostly single-threaded, so only pausing the current thread won't be an option.

 

Thanks though!

0

Please sign in to leave a comment.