Unable to see Logs in gateway

I thought you were using external python ?
How does editing external python make your designer blink and restart your clients ?

I am using VS code as python editor and all the py files are placed under
E:\Program Files\Inductive Automation\Ignition\user-lib\pylib
may be because of this, If I save anything in VS code it is executing in designer then its restarting the client.
I think so.

I think you really should be using the script library instead...
If you're editing the libraries directly, they're not really libraries.