suggestions for a new feature

It would be nice to be able to have a js-like console.log-like functionality but without modifying the code.

How would it work? The coder would add log-breakpoints to the code. The ide instead of stopping execution, it would just log variable values to a special console. The "log" would be like a variable watch, so the coder would be able to go examine the data at any later point in time. 

This would effectively help us debug complex code's state.

3 comments
Official comment

Thanks for the suggestion. It's probably reasonable to post that directly to IDEA issue tracker.

logging break points are already possible, but making snapshots of objects sounds very difficult....

0

Thanks for letting me know, I will give it a try.

Reg. logging object snapshots, it might be possible, just copying the object graph (depth configurable) to maps, in a similar manner like https://github.com/kostaskougios/cloning

0

Please sign in to leave a comment.