|
Page 3 of 10
Don't waste your time browsing large trees of unnecessary information... ask awDebugger instead!
Let's say you are debugging your application and for some reason you need to know the value of a field named CUS:CustId... what would you do? Of course, you can browse a huge tree full of variables, fields and modules until you find what you are looking for, but... do you really want to do that?
Wouldn't be better if you can just ask the debugger for the value of ANY variable? Sure it would! And this is exactly what the Immediate Window allows you to do! Just select the Immediate Window and type:
? CUS:CustId [enter]
... and the current value of the CUS:CustId field will be immediately displayed below.
The Immediate Window is probably the most simple and yet the most powerful feature included in awDebugger. It is basically a Clarion expressions interpreter embedded in a powerful debugger. You can enter not only variable or field names, but also complex expressions, and as long as they are valid Clarion-language expressions they will be evaluated as expected!!
You can find some examples below. The lines that contains a leading question mark were written by the developer (the questions) and the others represents the results of the evaluated expressions (the answers).
? Self.request
2
? Self.request = InsertRecord
false
? Self.request = ChangeRecord
true
? Clip(STU:FirstName) & ' ' & Clip(STU:LastName)
Matías Flores
? Choose(FinalGrade >= 70,'Approved','Not Approved')
Not Approved
? Choose(Self.Request = InsertRecord,'Adding a new record','Changing record')
Changing record
Virtually any valid Clarion expression can be evaluated by the Immediate Window. However, there are some rules you must follow in certain situations. Please check the documentation for details.
|