Debugging some pieces of application logic