debugging phase diagram