You are assigning the Serial port to the modbus? You can't have it both connected to the modbus and use it for debugging to Serial Monitor.
Is the a Mega2560 you are using? If so, you could wire it to one of the other Serial ports. A schematic would be helpful