Added a debug option for the network

This is needed for unit and integration tests that don't use the network