Steel-manning (& Devil's Advocate)
Steel-manning is the practice of assuming the best argument for your opponent's position before you offer a rebuttal. It is so-named because it is the opposite of the fallacy of straw-manning, which is to criticize a weak or made-up version of your opponent's argument.
To straw-man your opponent is to criticize an argument that they did not actually make, for the purpose of appearing to win the argument. To steel-man your opponent, by contrast, is to solidify their argument before attacking it. It is considered more intellectually honest, because you are giving your opponent the benefit of the doubt that they have better reasons for their beliefs than even what they can express.
In addition, making the case for positions you do not hold (devil's advocate) is considered a useful intellectual exercise, because it allows one to strengthen their own positions and arrive at true positions.