Jump to content

Commenting On/Out Lines of Code


Recommended Posts

Posted (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 by Marcus
Posted

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.

  • Like 2
Posted (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 by larryllix
Posted (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 by larryllix
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...