# add init_debug

dev-linux
Ivan Maslov 2 years ago
parent 7691d78e95
commit cdd418a1bf

2
.gitignore vendored

@ -2,6 +2,8 @@
/**/Resources/GoogleChromePortable
#Игнорируем все папки с названием __pycache__
/**/__pycache__/**
/Wiki/ENG_Guide/html/**
/Wiki/ENG_Guide/markdown/**
#Игнорируем папки распакованного блокнота
/**/Resources/Editor/Notepad++_7_7_x64/*
/**/Resources/Editor/Notepad++_7_7_x32/*

@ -39,4 +39,4 @@ Our contacts:
- Semantic UI ..., license MIT (https://github.com/Semantic-Org/Semantic-UI)
- PyAutoGUI ..., license BSD 3-Clause (https://github.com/asweigart/pyautogui)
- keyboard ..., license MIT (https://github.com/boppreh/keyboard)
- pywin32
- pywin32 ..., Python Software Foundation License (PSF) (https://github.com/mhammond/pywin32)

@ -13,6 +13,11 @@ How to use StopSafe on the robot side
.. automodule:: pyOpenRPA.Tools.StopSafe
:members:
:autosummary:
.. automodule:: pyOpenRPA.Tools.Debugger
:members:
:autosummary:
**********

@ -13,6 +13,7 @@ from . import Managers
from ..Tools import License
from subprocess import CREATE_NEW_CONSOLE
from .Utils import LoggerHandlerDumpLogList
from ..Tools import Debugger
# ATTENTION! HERE IS NO Relative import because it will be imported dynamically
# All function check the flag SessionIsWindowResponsibleBool == True else no cammand is processed
@ -2836,6 +2837,9 @@ def Orchestrator(inGSettings=None, inDumpRestoreBool = True, inRunAsAdministrato
lThread = threading.Thread(target= lProcess.StatusRestore)
lThread.start()
# Init debug thread (run if "init_dubug" file exists)
Debugger.LiveDebugCheckThread(inGSettings=GSettingsGet())
def __schedule_loop__():
while True:
schedule.run_pending()

@ -0,0 +1,23 @@
import os
import threading
import pdb
import time
"""Module wait file "init_debug" in working directory
"""
gKWARGS = None
def LiveDebugCheckLoop():
while True:
if os.path.exists("init_debug"):
pdb.set_trace()
time.sleep(30.0)
def LiveDebugCheckThread(**inKWARGS):
"""Create thread to wait file appear "init_debug" in the working directory.
"""
global gKWARGS
gKWARGS = inKWARGS
lThread = threading.Thread(target=LiveDebugCheckLoop)
lThread.start()

@ -1,3 +1,17 @@
[1.2.12]
2022_Q2
- ORCHESTRATOR
- - Raise debug session from production. Support init_debug file in working directory
- - MANAGERS
- - - ControlPanel
- - - Git CI
- - - Process
- - Support Linux Ubuntu
- ROBOT
- - Support Linux Ubuntu
- STUDIO
- - Support Linux Ubuntu
[1.2.0]
!Orchestrator!
- Consolidated processor from old orchestrator and from RDPActive processor (one threaded). Look in GSettings

Loading…
Cancel
Save