-
Notifications
You must be signed in to change notification settings - Fork 14
03. Setting up Debugger
Ashish Bhattarai edited this page Apr 29, 2021
·
1 revision
- Start Visual Studio
- Select
Create a new Project
- Select
C++
for language, click onEmpty Project
and pressNext
- Give location for your project and type project name, then press
Create
- Right Click on the Project Name under
Solution Explorer
window and add files - If
Solution Explorer
is not visible, click onView
and thenSolution Explorer
- Visual Studio uses PDB file for debug information
- Set
/Zi
flag in MSVC compiler to generate PDB file - Set
-gcodeview
flag in Clang compiler to generate PDB file - Run a developer command prompt (comes when you install Visual Studio)
- Execute the command:
devenv <path_to_your_exe>