Jump to content

How to temporarily comment out a line in a program (for easier testing) ?


EJones01
Go to solution Solved by EJones01,

Recommended Posts

Posted

Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks

Posted
3 hours ago, EJones01 said:

Its common practice to comment out code when testing, but I can't find an easy way to do this? Currently I have to copy a program and then delete lines....but thats very slow as once deleted I have to copy again. Any help would be appreciated, thanks

There is no way to comment out commands in a program.

Best you can do is duplicate the program, make changes you want to test and then disable the original program.

Posted

Another option, which I use, is to add a comment where the line should go and either type the line in, or a short reminder of what should be there.

This helps me during final 'tweaking' which I'm doing that now on several programs

Posted

First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success.

Check out the last comment in this thread:

 

  • Solution
Posted
1 hour ago, RRalston said:

First, I agree, a simple way to comment out line(s) of code would be nice, but I have used the following method with success.

Check out the last comment in this thread:

 

OK...so

 

Repeat 0 times  - stops the next lines running 
Repeat 1 times  -  and this starts running lines after this

Posted
OK...so
 
Repeat 0 times  - stops the next lines running 
Repeat 1 times  -  and this starts running lines after this
No. Repeat 0 times will execute it once anyway. That syntax is messed up.

Replace the line with WAIT 0 SECONDS.

Sent from my SM-G781W using Tapatalk

Guest
This topic is now closed to further replies.

×
×
  • Create New...