コメントを使用してコードをマークできます。それ以外に、コードのブロックまたは行を実験的/テスト目的のみとしてマークする方法はありますか?
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
}