git / gdb

抓檔:git clone 網址

上傳(commit): git commit “修改內容(自己想打什麼就打什麼)”

看commit log: git log

——————————————————————————————————

用gdb:gcc debugger

先gdb進去debug mode
在裡面只能使用pwd, cd指令

1. 讀檔: file “檔名”
2. 試跑: run
3. 看code: list
                  list –
4. 設中斷點:break 行數
                        b 行數
5. 設watch point: watch 參數

6. 程式執行:
逐步執行: n
離開中斷點執行: c

作者

RongSon

Graduate Student of CCU COMM Game Development, Network Communication, macOS/Ubuntu/Android, Arduino/Raspberry Pi/Intel Edison, Java/Python/C/C++

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *