Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
12 lines
438 B
Plaintext
12 lines
438 B
Plaintext
import pydevd
|
|
from multiprocessing.connection import Listener
|
|
|
|
print("CLion debugger macro running. Starting listener to get port")
|
|
listen = Listener(('localhost', 39998), backlog=1)
|
|
link = listen.accept()
|
|
port = link.recv()
|
|
link.close()
|
|
listen.close()
|
|
print("Port", port, "received, starting debugger. Check CLion to see if a breakpoint has been hit and continue")
|
|
pydevd.settrace(port=port)
|
|
print("Debugger operating, leaving macro.") |