May 8, 2009

超~精簡的VC6 Debug功能簡介


主要按鍵:
F5:RUN
Shift+F5:離開DEBUG MODE
F10:單步執行(執行副程式但不進入)
F11:單步執行,真的給你一步一步來


===========================================================================================
按下F11 or F10,若程式未compile,VC6會先幫你compile,再進入DEBUG MODE;
左邊黃色箭頭代表目前所在的位置;
左下角視窗為目前所在的副程式裡的變數;
右下角視窗可供使用者自訂及監看變數,前提是必須為這支程式裡所存在的變數。



===========================================================================================
透過F11 or F10將黃色箭頭移到 "StringPatternMaching(iData, iPtrn);"  這一行,
按下 F11 ,可以從 "main" 跳進 "StringPatternMaching"。





===========================================================================================
進入 "StringPatternMaching" 後,可以發現左下角視窗的變數都被換掉了,被換成了目前這個副程式裡的變數;
我們可建立想要監看的變數在右下角視窗。



===========================================================================================
BreakPoint功能
Insert / Remove : 插入 / 移除
Disable / Enable: 關閉 / 打開


在想要停止的程式碼,按下滑鼠右鍵,選擇 Insert / Remove,
插入一個BreakPoint,螢幕左邊會出現一個小紅點;
在DEBUG MODE中,當按下F5後,若遇到小紅點則程式會停在這邊,
等待使用者進行下一個動作。





===========================================================================================



以上!

Today's Visitors: 0 Total Visitors: 74
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0