Results 1 to 4 of 4

Thread: Confusion about expressions panel when debugging

  1. #1
    Join Date
    Apr 2010
    Posts
    104

    Default Confusion about expressions panel when debugging

    Hi,

    I'm using STS 2.5.2. I'm debugging a Grails (1.2.1) project and had a question about the expressions panel (http://screencast.com/t/9j26pQnVGxKd). Is it possible to do on-the-fly evaluations of variables or expressions that are currently in-scope? If so, I'm not having success -- i.e. getting the message "<error(s)_during_the_evaluation>" when entering in variable names that are defined in the current scope.

    Thanks for any clarifications, - Dave

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    H Dave,

    In general, yes the expressions view is working. However, there are cases where debug support breaks down. We have fixed a few bugs in the area recently, so I would recommend that you upgrade to STS 2.6.0.

    One thing that I notice in your screenshot is that the debug location is on the line where the variable is being declared. So, it hadn't been declared yet. What happens if you do a step over in the program (ie- F6) and go to the next line? Can you now see the variable in the expressions view?

    Do you see any exceptions in the error log?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Apr 2010
    Posts
    104

    Default

    Hi,

    Thanks for your response. I upgraded and when I stepped over the line I referenced in the screen shot I did see a value. Additionally entering expressions on the fly does produce values as well. I thought i was doing that with the previous version, but whatever the case things seem to be working smoothly now.

    - Dave

  4. #4
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    768

    Default

    Great. Please let me know if you have any more issues.
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •