Question: How do you set breakpoint at C/C++ source line in WinDbg?
- Open source code from File - Open source file menu (or Ctrl + O)
- Set cursor on the source code line
- Hit [F9] or click HAND icon in toolbar
Use WinDbg bp command. The following command sets breakpoint on line 10 of main.cpp.