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

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.

Link to comment
  • Solution
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

Link to comment
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

Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...