iOS/iOS Swift Udemy - AngelaYu

Debug with breakpoint

Developer-Michelle 2022. 10. 26. 22:48

Debug with breakpoint

 

 

self.itemArray.append(textField.text!)

전/후로 달라진 itemArray를 보고 싶은 경우 ??

 

1) 전

breakpoint 찍고나서, 디버그창에다가 print itemArray 치면 현재의 itemArray를 보여줌 (3가지)

 

2) 후

breakpoint를 무시하고 그 다음줄까지 쭉 실행시켜보고 싶으면 step over (디버그창의 왼쪽에서 두번째) 를 클릭해서 실행시킨뒤

다시 print itemArray로 출력해보면 됨.