We need a toggle disabled OPTION. Would be soo useful for debug

Feature request
  • Something is not working on your code and you know it, but how can you localize it? You will have to disable suspisious code until you find where the issue is.

    The problem is that you cannot disable. You have to delete the code! In a low scale level, you can just cut and paste. But what about large scale codes? You would need to cut and remember multiple lines of code which the software cannot do.

    Solution? A toggle disable option! when you right-click, there should be a button that can toggle disable the code that has been selected. So now, when you run the script, the disabled code should not be running and if you click again on toggle disabled. It enables back!!!

    TL:DR : In coding, this is known as commenting specific script. We also need it in BAS in the form of a toggle disabled option!

    Please vote if you believe this should be added! Thanks!

  • @excelant100 said in We need a toggle disabled OPTION. Would be soo useful for debug:

    Something is not working on your code and you know it, but how can you localize it? You will have to disable suspisious code until you find where the issue is.

    The problem is that you cannot disable. You have to delete the code! In a low scale level, you can just cut and paste. But what about large scale codes? You would need to cut and remember multiple lines of code which the software cannot do.

    Solution? A toggle disable option! when you right-click, there should be a button that can toggle disable the code that has been selected. So now, when you run the script, the disabled code should not be running and if you click again on toggle disabled. It enables back!!!

    TL:DR : In coding, this is known as commenting specific script. We also need it in BAS in the form of a toggle disabled option!

    Please vote if you believe this should be added! Thanks!

    In the current implementation there is an option "Don't run when recording":

    cbccdade-e023-4aba-8fd2-4de805b44ba0-изображение.png

    This only works for the "record" mode, the same option for the "run" mode is in the plans. Until this is implemented, you can use the "If" action with code 1 so that the actions inside are performed, and code 0 so that they are not performed.

  • @Fox Ooh, I did not know we could do that! Thank you for this information! I can't understand how I did not see this option after all the times I've edited a script. Also, nice alternative for run mode. Will probably use if there is an issue that only happens when multi-threading!

    Again thank you for the fast answer!