facebook

Evaluating expressions

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #248771 Reply

    patmeth
    Member

    Hello,

    I took a look at the documentation and could not find a way to type in and evaluate expressions or the value of a property of an object while debugging. For eg. if the object instance “account” has a property “balance” Can I type in “account.balance” into a window and get the amount displayed? Or, if I want to evaluate “2 +3 * 6”, can I type this into a window and get the result?.

    I also work with C# .NET and its IDE has this facility and thought that it would be very helpful if the MyEclipse IDE could do this. Or maybe it can but I can’t find it!

    Thanks a lot,
    Glenn.

    #248889 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    Glenn, when you are debugging, if you switch to the Debug perspective, then click the “Expressions” view (tab) then enter in your expression there, you need to have your execution stopped in the appropriate scope though, so for example, if in your “test” method you created a variable called “name”, yopu would have to be stopped after the line you created name on to evaluate the expression, any other point outside that scope will mark the expression invalid.

    #248962 Reply

    patmeth
    Member

    Thanks Riyad.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Evaluating expressions

You must be logged in to post in the forum log in