Saturday, September 4, 2021

Visual Studio project properties debugging setup



Setup project properties of VisualStudio in order to debug the project

  • Set the working directory where the application to be debugged is located
    • Command - DDSCom.exe
    • Command arguments - any command-line arguments required for DDSCom.exe
    • Working directory - directory path of DDSCom.exe


  • Set following to /Zi otherwise, symbols will not be loaded


  • Set PDB file to generate which contains (program database) information for debugging. generated DDSCom.pdb should be placed in the DDSCom.exe work directory (usually x64/release or x64 debug)



  • Now set breakpoints then you can run the local debug window and debug DDSCom.exe


No comments:

Post a Comment

LeetCode C++ Cheat Sheet June

🎯 Core Patterns & Representative Questions 1. Arrays & Hashing Two Sum – hash map → O(n) Contains Duplicate , Product of A...