Hi Waldemar,
I'm not sure what you mean by: "The case doesn't do it -> then when you want to disable it -> you have to copy/paste the "code" and if there are some references to graphs(or something) in there LV will create another instance. Now all the cables need to be rerouted,...." ?
As mentioned before, when you want to comment out a section of code just put a case around it wired to the appropriate T/F constant. Yes you will have to go to the other case and wire the "inputs" to the case to the "outputs". When you are done debugging, you can either just change the constant (the case doesn't add very much overhead in the code) or delete it by selecting the case with the code you want showing and then right clicking on the case structure and selecting "Remove Case Structure". It will give you a warning that code in the other cases will be removed. If the problem is that there are elements that will be "cased out" that you would want to remain, to possibly display data without the cased out function/calc, etc. then you probably need to break up the "cased out" code into more than one case. Not exactly elegant, but I'm not sure how you would do it otherwise in a graphical language.
P.M.
PutnamCertified LabVIEW Developer
Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5

LabVIEW Champion