Skip to content
Snippets Groups Projects
Commit 72fba2c4 authored by Benedikt's avatar Benedikt
Browse files

no exit if remote debugging fails

parent bf897fb9
No related branches found
No related tags found
No related merge requests found
......@@ -40,14 +40,12 @@ if os.getenv('ENABLE_REMOTE_DEBUG') == '1':
try:
import pydevd_pycharm
# Set the debugger to connect back to PyCharm using the specified port
pydevd_pycharm.settrace(get_ip_address(), port=6003, stdoutToServer=True, stderrToServer=True)
pydevd_pycharm.settrace('127.17.0.1', port=6003, stdoutToServer=True, stderrToServer=True)
print(f"Remote debugging is enabled. Connecting to debug server at "+str(get_ip_address())+":6003")
except ImportError:
print("pydevd_pycharm is not installed. Please install it for remote debugging.")
sys.exit(1)
except Exception as e:
print(f"Failed to start remote debugging: {e}")
sys.exit(1)
print("Starting DCCVwier server at ", get_ip_address())
class page:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment