Debugging of agent behaivor