Marcus Posted December 18, 2020 Posted December 18, 2020 (edited) I'm sure this is covered somewhere but I can't seem to find it. When writing or editing an ISY program, I'd like to be able to (1) add a comment to a specific line or section of active code and/or (2) temporarily comment out a specific line or section of code. The only thing I seem to be able to accomplish is adding a comment to the very end of the program https://100001.onl/ https://1921681254.mx/. Edited December 22, 2020 by Marcus
MrBill Posted December 18, 2020 Posted December 18, 2020 There is no functionality to comment out or stop a line of code from executing. Comments can be Moved Up just like a line of code. I don't have the need as much anymore due to increased comfort level, but one thing I did in the early days when I wanted to try something was make a copy of the program and disable the original then make changes to the copy for testing. 2
larryllix Posted December 18, 2020 Posted December 18, 2020 (edited) 16 minutes ago, MrBill said: There is no functionality to comment out or stop a line of code from executing. Comments can be Moved Up just like a line of code. I don't have the need as much anymore due to increased comfort level, but one thing I did in the early days when I wanted to try something was make a copy of the program and disable the original then make changes to the copy for testing. I do the same, but one caveat is, any program relating to, or calling the program being tested, will not be linked properly during the testing phase. Commenting out a line is one of the most basic troubleshooting techniques in other languages. Edited December 18, 2020 by larryllix
larryllix Posted December 18, 2020 Posted December 18, 2020 (edited) 8 hours ago, Marcus said: I'm sure this is covered somewhere but I can't seem to find it. When writing or editing an ISY program, I'd like to be able to (1) add a comment to a specific line or section of active code and/or (2) temporarily comment out a specific line or section of code. The only thing I seem to be able to accomplish is adding a comment to the very end of the program. Try the action section of the programming selections. Comments were added between lines in the If, Then, and Else section a few versions ago. They can be found under odd places though and consume too much vertical space, making the code less readable, IMHO. Edited December 18, 2020 by larryllix
Recommended Posts