Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using IntelliJ idea Community edition (with Scala) and I'm trying to evaluate an expression. I hit Alt-F8 to open it in debug mode and then switch to 'Code Fragment Mode'. However, I'm allowed to only evaluate variables that already exist in memory, and am not allowed to declare new. When I do so, I get- 'Evaluation of variables is not supported'. Is there a plugin that I can use in debug mode to evaluate arbitrary code?


share|improve this question

As of now, the current version of IntelliJ does support variables in their expression evaluator (code fragment mode). I tried val and var, they both work as expected.

share|improve this answer
Could you state the 'current' version in the answer please, as this might change over time. – djsmiley2k 13 hours ago

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .