You could use comments to mark code. Besides that, is there a way to mark a block or line of code as experimental/only for test purposes ?
Pseudocode in java -
public SpecialObject importantMethod(){
System.out.println("Ready to go into if else"); // Test Code: Delete Later !
if(condition after a big series of method calls){
System.out.println("Entered into if"); // Test Code: Delete Later !
//execute code which is critical to program
}else
{
System.out.println("Entered into else"); // Test Code: Delete Later !
//execute code which is critical to program
}
return specialObject;
}
public void anotherImportantMethod(){
SpecialObject obj = importantMethod();
//do something important with obj
}