Target Language Compiler | ![]() ![]() |
Debug gain.tlc
Now let's look around to find out what is wrong with our code:
TLC processes input, reports its progress, advances to line 50 in gain.tlc
, displays the line, and pauses:
whos
command to see the variables in the current scope:
TLC-DEBUG> whos Variables within: <BLOCK_LOCAL> k String rollVars Vector u String y String block Resolved system Resolved
print
command (note, names are case sensitive):
TLC-DEBUG> print k 1.0 TLC-DEBUG> print rollVars [U, Y, P] TLC-DEBUG> print u u0[i1] TLC-DEBUG> print y y0[i1]
LibIsEqual()
, advance via the next
command:
Clearly, this is the origin of the C statement responsible for the erroneous constant output, rtb_first_output = 1.0;.
![]() | Start the Debugger and Explore Commands | Fix the Bug and Verify the Fix | ![]() |