-
Notifications
You must be signed in to change notification settings - Fork 20
DebuggingWindows
Häfner edited this page Apr 25, 2022
·
1 revision
To start PolyVR certain environment variables need to be set, this is why directly starting with Visual Studio will not work. The windows start script is start-win2.bat .
- compile PolyVR as release build with debug symbols
- in the project properties:
- Click the C/C++ node. Set Debug Information Format to C7 compatible (/Z7) or Program Database (/Zi).
- Expand Linker and click the General node. Set Enable Incremental Linking to No (/INCREMENTAL:NO).
- Select the Debugging node. Set Generate Debug Info to Yes (/DEBUG).
- Select the Optimization node. Set References to /OPT:REF and Enable COMDAT Folding to /OPT:ICF.
- source: https://docs.microsoft.com/en-us/cpp/build/how-to-debug-a-release-build?view=msvc-170
- open the start-win2.bat in a text editor, comment the line that starts the polyvr.exe, uncomment the line with devenv.
- run start-win2.bat, this will open Visual Studio, once open click on start at the top