Debugger displays unevaluated expressions.
|
03-10-2014, 10:27 PM
Post: #1
|
|||
|
|||
Debugger displays unevaluated expressions.
When I use Debug or MSGBOX() in the emulator to follow the value of variables in a program I am debugging, instead of values on the screen I see unevaluated expressions, such as:
Maxheight2: 7.3894E-4/(1.0000/3.9600E3). Or (my favorite) height1 = 1.0000+FLOOR(5.0000+1.55O0e2*( 1.0000-2.2150e-9/(1.0000/3.9600E 3)/(7.3894E-4/(1.0000/3.9600E3)))+ 5.0000E-1) Needless to say, this gets tiresome very quickly and is not much of an aid to debugging. What am I missing? How do I get Debug and MSGBOX() to display values, not formulae? And as always, Thank You! Ben |
|||
03-10-2014, 10:35 PM
Post: #2
|
|||
|
|||
RE: Debugger displays unevaluated expressions.
Aha. Just found how to use eval() to solve that.
Thanks for the bandwidth. BF |
|||
03-10-2014, 10:39 PM
Post: #3
|
|||
|
|||
RE: Debugger displays unevaluated expressions.
Maxheight2: 7.3894E-4/(1.0000/3.9600E3). Or (my favorite)
height1 = 1.0000+FLOOR(5.0000+1.55O0e2*( 1.0000-2.2150e-9/(1.0000/3.9600E 3)/(7.3894E-4/(1.0000/3.9600E3)))+ 5.0000E-1) if your code is using the "=" sign as above, try that again with ":=" like: height1:=1.0000+FLOOR(5.0000+1.55O0e2*(1.0000-2.2150e-9/(1.0000/3.9600E 3)/(7.3894E-4/(1.0000/3.9600E3)))+ 5.0000E-1); |
|||
03-11-2014, 06:17 AM
Post: #4
|
|||
|
|||
RE: Debugger displays unevaluated expressions.
Hello,
It is strange that the numbers do not get evaluated by themselfves, you probably have a simple error somewhere that causes it. If you post your program code, I can have a look at it... note, do you know that there is a build in debuger? you can do debug(program) from the command line, OR you can add a debug instruction in your program to create a breakpoint. Cyrille |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)