Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623274
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:21:47+00:00 2026-05-18T23:21:47+00:00

I’m an everyday C#/ASP.NET MVC/Visual Studio user and i’ve just started a project in

  • 0

I’m an everyday C#/ASP.NET MVC/Visual Studio user and i’ve just started a project in JAVA/GRails/Eclipse but i’m finding it quite difficult to use Eclipse’s debugging features and find them somewhat limited compared to Visual Studio’s. In particular, i’m finding the following rather disappointing but i don’t know if they’re limitations of Eclipse as a vanilla IDE or the fact that i’m trying to use it for development using Grails.

  1. Seemingly poor equivalent of Visual Studio’s “Immediate Window” – In VS i use the Immediate window all the time during debugging and I’ve found that in eclipse the equivalent is the “Display” View. However, whereas in VS i can type the name of an object (e.g. “?user”) and upon hitting enter i’m given all the properties/methods of the object, in eclipse i have to highlight the expression and then explicitly tell it to either Inspect, execute etc. Having done so, it then adds the results of the Inspection to another window forcing me to go between the two.

  2. The Display View seems to be unable to actually evaluate properties or methods. If, for example, i have an instance of a User class and in the Display window i type userInstance.FirstName or call a method such as userInstance.FullName(), i get evaluation failed errors: “The method FullName() is undefined for the type Object”. Furthermore, if i add a watch for the instance i can see the properties but again the method is nowhere to be seen. However, the method evaluates fine as an expression within a block of code (proving that it does exist and is recognised)

  3. Also, although various documentations state that it’s possible to add a watch by simply highlighting an object, right clicking and adding a Watch this option seems not to be there so i’m having to type the object into the Display view, highlight it and add a watch from the display view context menu.

  4. Evaluating expressions such as User.get(params.id) (again in the Display view) returns errors such as the following:

User.get(params.id)
Evaluation failed.
Reason(s): params cannot be resolved

However, it evaluates fine while stepping over the code. Is this due to the dynamic nature of Grails/Groovy?

Code snippets:

User.groovy:

class User {

    String firstName
    String lastName
    String middleName
    private String fullname

    static constraints = {
        firstName(blank:false)
        lastName(blank:false)
        middleName(blank:false)
    }

    public String FullName()
    {
        fullname = firstName + " " + lastName;
    }
}

UserController.groovy:

class UserController {

...

   def show = {
        User userInstance = User.get(params.id)
        userInstance.FullName()
        if (!userInstance) {
            flash.message = "${message(code: 'default.not.found.message', args: [message(code: 'user.label', default: 'User'), params.id])}"
            redirect(action: "list")
        }
        else {
            [userInstance: userInstance]
        }
    }

...

}

Can anyone say whether these are limitations of Eclipse, the Grails Plugins for Eclipse or possibly something else. Whatever the case, they’re making development of an MVC web application using JAVA much less appealing that the equivalent ASP.NET MVC that i’ve used.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:21:48+00:00Added an answer on May 18, 2026 at 11:21 pm

    Please note that as of STS 2.5.1, there is extended debugging support for Groovy when stopped on a Groovy stack frame. Now, the display view and expressions view recognizes Groovy syntax and can evaluate Groovy code the way that you would expect.

    So, this means that your points 2 and 4 are now working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.