Enabling breakpoints in Visual Studio for Vaa3D plugins - Vaa3D/Vaa3D_Wiki GitHub Wiki

  1. Generate a Visual Studio project using: qmake -tp vc ***.pro

  2. In Configuration properties -> Debugging:

    • add Vaa3D executable path to "Command". e.g.: C:\Users\penglab\Documents\GitHub\v3d_external\bin\vaa3d_msvc.exe
    • if you want to call plugin via dofunc, add plugin arguments to "Command Argument". e.g.: /x plugin_name /f function_name ...; if you want to use domenu, just leave this field blank.
    • add working directory to "Working Directory". e.g.: C:\Users\penglab\Documents\GitHub\v3d_external\bin
      /images/plugin-breakpoints-1.PNG
  3. In Configuration properties -> C/C++ -> General:

  4. In Configuration properties -> Linker -> Debugging:

  5. Build the project.

  6. In the corresponding output folder, make sure the *.pdb file is present.