Debug TDMGCC with VSCODE in win7

Envriment:

win7,

lastest vscode,

TDMGCC,

Debug Step:

1. Press 'F5', will let you choice a item, as bellow:

click the "c++ (GDB/LLDB)".

2.Then will be creat a file name "launch.json", open it and modify 2 place:

"program": "${workspaceFolder}/test.exe",

"miDebuggerPath": "C:\\TDM-GCC-64\\bin\\gdb.exe",

like following:

3.Press "F5" again, now you can debug it.

Note:  You must add "-g" as the GCC compile parameter. 

 

 

posted on 2018-09-06 18:48  lizhuohui  阅读(92)  评论(0编辑  收藏  举报

导航