I can see some good use of it and I did need this thing sometime back
eg:- you are intereseted in checking out some internal state and you dont want your script to run in pieces, debugging could be other reason.
One might consider writing a script with a pause button that ways you can actually traverse some humanly possible no. of steps when script runs. I think that ways even maya would register things in undo stack.
Guess what I tired this
sphere;
$i=0;
while($i<15)
{ move $i 0 0 nurbsSphere1;
confirmDialog;
//pause -sec 5;
$i+=3;
}
Maya does not show any thing till script is finished and undo also does not work
I tried pause command also the results are not available on screen
so just key everything and see it in animation 