Add checks to debug:print* to verify that the port given is really a port