User Tools

Site Tools


debugging_complex_programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
debugging_complex_programs [2021/08/02 10:41] – [Differences between write function for internal registers and external] emozolyakdebugging_complex_programs [2021/08/04 15:20] – [Proper commenting] emozolyak
Line 67: Line 67:
 ----------------------------------------CALC. DAY ECONOMY -------------------------------------------------- ----------------------------------------CALC. DAY ECONOMY --------------------------------------------------
     LimitMonthDayYesterday = GetReg("LimitMonthDayYesterday1"             -- Yesterday's limit     LimitMonthDayYesterday = GetReg("LimitMonthDayYesterday1"             -- Yesterday's limit
-    HeatEnergyDay = GetReg("HeatEnergyDay"                                 -- Heat qty. for yesterday+    HeatEnergyDay = GetReg("HeatEnergyDay"                                -- Heat qty. for yesterday
     WriteReg("SavingDay1", (LimitMonthDayYesterday - HeatEnergyDay))        -- Economy for the day                               WriteReg("SavingDay1", (LimitMonthDayYesterday - HeatEnergyDay))        -- Economy for the day                          
 ------------------------------------------------------------------------------------------------------------  ------------------------------------------------------------------------------------------------------------ 
 </code> </code>
  
 +===== Step over trick =====
 +
 +When you need to run once your script and inspect its result in the console, you can do this as follows:
 +  *make extra bit register, like "Debug step over bit"
 +  *change run mode of the script being debugged - execute upon the register's (you've created in the previous step) change 
 +
 +{{ ::2021-08-02_13-51-50.gif?nolink |}}
  
  
  
  
debugging_complex_programs.txt · Last modified: 2022/01/15 20:50 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki