Function to check the debugger connection, that if active then only import pydevd and perform debugging capabilities.