tutorial of eclipse

Post on 24-Jun-2015

445 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Eclipse

Kun-Ta Chuang

Department of Computer Science and Information Engineering

National Cheng Kung University

Download

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

Install New Software - git

Install New Software - git

Install New Software - git

• Egit

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

Install New Software - git

Install New Software - git

Install New Software - git

Install New Software - git

Install New Software - git

Link with JDK

Link with JDK

Link with JDK

New Java Project

New Java Project

New Java Project

New Java Project

New Java Project

New Java Project

New Java Class

New Java Class

Run

• Run

Run

• 當有argument需要提供時

– Run with Configuration

Run

Run

Debug

• Debug之前,先設幾個breakpoint

Debug

• Debug

• Debug with Configuration

方式與 Run Configurations相同

Debug

Debug

• Debug 功能鈕 – Resume

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

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

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

Debug

• 查看變數當下的內容

Debug

Trace Code

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

Trace Code

Question

top related