FreeCAD WebAssembly development snapshot
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

This commit is contained in:
2026-08-20 07:00:53 +08:00
commit b5a086fda5
12718 changed files with 7841410 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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.")

View File

@@ -0,0 +1,18 @@
--- attach_pydevd.py.orig 2024-09-26 10:36:47.131066345 -0400
+++ attach_pydevd.py 2024-09-26 10:16:48.687714133 -0400
@@ -48,6 +48,15 @@
import add_code_to_python_process
show_debug_info_on_target_process = 0
+ print("attach_pydevd is trying to relay the port",setup['port'])
+ try:
+ from multiprocessing.connection import Client
+ link = Client(('localhost',39998))
+ link.send(setup['port'])
+ link.close()
+ except ConnectionError as ce:
+ pass
+
pydevd_dirname = os.path.dirname(os.path.dirname(__file__))
if sys.platform == 'win32':

View File

@@ -0,0 +1,7 @@
#!/bin/bash
# Change to the directory of this script (any subdirectory in the repository should work)
cd "$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" &> /dev/null && pwd -P)"
# Activate pixi default environment
eval "$(pixi shell-hook)"

View File

@@ -0,0 +1,10 @@
@echo off
REM Change to the directory of this script (any subdirectory in the repository should work)
cd /d "%~dp0"
REM Activate pixi default environment
REM Write the output of pixi shell-hook to a temporary batch file and execute it
set TEMP_BATCH_FILE=%TEMP%\pixi_shell_hook_freecad.bat
pixi shell-hook > "%TEMP_BATCH_FILE%"
call "%TEMP_BATCH_FILE%"
del "%TEMP_BATCH_FILE%"