When you are debugging your development work, you want to build PBS without any optimizations, and with the debug flag.
We have changed Here are the steps in https://github.com/PBSPro/pbspro/blob/master/INSTALL to reflect what a developer needs, because the standard INSTALL instructions are for non-developers. The steps are as follows:
Install Any Dependencies (Only Needed First Time)
...