Select Tools, then select External Tools... in Visual C++. Click on Add and provide the followings.
Title &WindbgSave the configuration and test if it works. Open a project that builds an executable file. Select Tools, then select Windbg to start the debugger. In the command window type
Command C:\Program Files (x86)\Debugging Tools for Windows (x86)\windbg.exe
Arguments -srcpath $(ProjectDir) $(TargetPath)
Initial directory $(TargetDir)
.open example.cppto load the source code. The source window should pop up with the source file in it. Move the cursor in the source window and press F9 to place a breakpoint.