How to stop or pulse the Serial Monitor during the testing?

Thanks.
here: Nano upload Access is denied