Skip to content

03. Setting up Debugger

Ashish Bhattarai edited this page Apr 29, 2021 · 1 revision
  • Start Visual Studio
  • Select Create a new Project New Project
  • Select C++ for language, click on Empty Project and press Next Project Selection
  • Give location for your project and type project name, then press Create Type Selection
  • Right Click on the Project Name under Solution Explorer window and add files
  • If Solution Explorer is not visible, click on View and then Solution Explorer

Setting up Debugger (for other build process)

  • 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>
Clone this wiki locally