@Westfallx: you may want to research the earlier forum threads on the similar topics to see how other developers tried to resolve it.
Just a few of them are below, to begin with
How to debug erpnext - #17 by yangyan7777 (this one has interesting conversation in posts 17-22 of the thread)