34
Eclipse Kun-Ta Chuang Department of Computer Science and Information Engineering National Cheng Kung University

Tutorial of eclipse

Embed Size (px)

Citation preview

Page 1: Tutorial of eclipse

Eclipse

Kun-Ta Chuang

Department of Computer Science and Information Engineering

National Cheng Kung University

Page 2: Tutorial of eclipse

Download

• http://www.eclipse.org/downloads/

Page 3: Tutorial of eclipse

Install New Software - git

Page 4: Tutorial of eclipse

Install New Software - git

Page 5: Tutorial of eclipse

Install New Software - git

• Egit

– http://download.eclipse.org/egit/updates

Page 6: Tutorial of eclipse

Install New Software - git

Page 7: Tutorial of eclipse

Install New Software - git

Page 8: Tutorial of eclipse

Install New Software - git

Page 9: Tutorial of eclipse

Install New Software - git

Page 10: Tutorial of eclipse

Install New Software - git

Page 11: Tutorial of eclipse

Link with JDK

Page 12: Tutorial of eclipse

Link with JDK

Page 13: Tutorial of eclipse

Link with JDK

Page 14: Tutorial of eclipse

New Java Project

Page 15: Tutorial of eclipse

New Java Project

Page 16: Tutorial of eclipse

New Java Project

Page 17: Tutorial of eclipse

New Java Project

Page 18: Tutorial of eclipse

New Java Project

Page 19: Tutorial of eclipse

New Java Project

Page 20: Tutorial of eclipse

New Java Class

Page 21: Tutorial of eclipse

New Java Class

Page 22: Tutorial of eclipse

Run

• Run

Page 23: Tutorial of eclipse

Run

• 當有argument需要提供時

– Run with Configuration

Page 24: Tutorial of eclipse

Run

Page 25: Tutorial of eclipse

Run

Page 26: Tutorial of eclipse

Debug

• Debug之前,先設幾個breakpoint

Page 27: Tutorial of eclipse

Debug

• Debug

• Debug with Configuration

方式與 Run Configurations相同

Page 28: Tutorial of eclipse

Debug

Page 29: Tutorial of eclipse

Debug

• Debug 功能鈕 – Resume

• 直接繼續Run至下一個Breakpoint,若無下一個則直接完成

– Step Info • 執行該行,若有呼叫副程式,則會跳進副程式中繼續執行

– Step Over • 執行該行,若有副程式,則直接得到副程式的結果,不會進到副程式裡面執行

Page 30: Tutorial of eclipse

Debug

• 查看變數當下的內容

Page 31: Tutorial of eclipse

Debug

Page 32: Tutorial of eclipse

Trace Code

• 在Trace Code時,可以Ctrl + 滑鼠左鍵的方式,來尋找宣告變數的地方,或者該class功用為何?

Page 33: Tutorial of eclipse

Trace Code

Page 34: Tutorial of eclipse

Question