I have a method that returns an IEnumerable like this..
public virtual IEnumerable ToPages(){ // foreach logic yield return pages; // more
Try putting a break on the yield. That should fix it.