title: Eclipse photon Error when executing code in Debug Shell
body: <p>I'm using Eclipse photon, and I want to executing code while debugging, therefore, I'm using Debug Shell (Display in previous versions of eclipse), however I get the following error : </p>
  
  <blockquote>
    <p>To perform an evaluation, an expression must be compiled in the context of a Java project's build path. The current execution context is not associated with a Java project in the workspace.
        Evaluation failed. Reason(s): Unable to evaluate the selected expression:
            To perform an evaluation, an expression must be compiled in the context of a Java project's build path. The current execution context is not associated with a Java project in the workspace.</p>
  </blockquote>
  
  <p><br><strong>Edit</strong>
  <br>here is a screenshot :<a href="https://i.stack.imgur.com/K2UD5.png." rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K2UD5.png." alt="enter image description here"></a></p>
  
  <p><br> I also have problem with the Expressions view, it doesn't update variable's state when I added them 
  <br>**Edit2 **</p>
  
  <p>here is two screens of what happens when I select a running Thread vs when I select a paused thread : </p>
  
  <ul>
  <li>running thread : <a href="https://i.stack.imgur.com/yvGAd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yvGAd.png" alt="enter image description here"></a></li>
  <li>paused thread : <a href="https://i.stack.imgur.com/RhsFD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RhsFD.png" alt="enter image description here"></a></li>
  </ul>