I am sorry but I don't understand your question.
Could it be that you are looking for soemthing like the "trace" command? Thats available in Mathcad 15 and below but not in Prime. If you want to have a look at intermediate results of a self written iteration you have to collect those results in a vector and return this vector as the program result.