I think this -debugnet check needs to go first, so fDebug gets set correctly?