1 / 11

How To Debug In Visual C++ 2005

How To Debug In Visual C++ 2005. Chia -Chi Chan Visual Communications Laboratory Department of Communications Engineering National Central University. Outline. 如何設定中斷點 如何 Debug 總整理 & 現場教學. 如何設定中斷點. 方法 1. 直接在此處點一下. 方法 2. 先將游標點在要執行的行 列上 , 再按 F9 設定中斷點. 如何 Debug. 設完中斷點後再按 F5 跑執行.

silas-flynn
Télécharger la présentation

How To Debug In Visual C++ 2005

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How To Debug In Visual C++ 2005 Chia-Chi Chan Visual Communications Laboratory Department of Communications Engineering National Central University

  2. Outline • 如何設定中斷點 • 如何Debug • 總整理 &現場教學

  3. 如何設定中斷點 方法1.直接在此處點一下 方法2.先將游標點在要執行的行 列上,再按F9設定中斷點

  4. 如何Debug 設完中斷點後再按F5跑執行 代表現在程式執行到箭頭處就停止了,同時.exe檔也會show出此時程式碼跑出的結果

  5. 如何Debug • 按F10:不進入函式執行 • 按F11:逐步執行程式碼

  6. 如何Debug • 此時,如果按F11(逐步執行程式碼),會出現: WHY?????

  7. 如何Debug 如何跳離此程式??? SHIF+F11(跳離函式)

  8. 如何Debug • 按F11

  9. 如何Debug 如果按F10(不進入函式執行) 執行到 printf("Welcome to C!\n") 並且將此結果輸出在exe檔上

  10. 如何Debug • 按F10: Debug 完成了!!!

  11. 總整理 &現場教學 • F9:設定中斷點 • F10: 不進入函式執行 • F11:逐步執行程式碼 • SHIFT+F11:跳離函式 • SHIFT+F5:停止偵錯

More Related