startup: run the debugger with the repository Python #1528
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1535"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-11-24T13:44:27Z.
Problem
tools/startup/run.ps1startsdebug_launch.pywithpythonfromPATH. The documented setup createsout/pe-envfromrequirements-dev.txt, but the launcher did not use it.That matters for
-HostCpu.debug_launch.pyimportshost_cpu.py, which needsiced-x86when a short rewritten instruction has to move the following bytes. With a system Python that lacks the package, the first illegal instruction is logged ashost-cpu no replacement ... No module named 'iced_x86', no rewrite happens, and the process stops on the second chance instead of continuing.Change
run.ps1now usesout/pe-env/Scripts/python.exewhen that interpreter exists, and keepspythonfromPATHas the fallback. No other launcher behaviour changes.docs/startup-runtime.mdstates the interpreter selection and why-HostCpuneeds the venv.Validation
32.0.32029.2010), release build. The run ended by timeout after 25.03 s withhost-cpu sites rewritten: clzero x5, monitorx x1, mwaitx x1; it no longer stopped on the illegal instruction.python -B tests/docs_links_check.py: 16 Markdown files and 339 links checked, self-test passed.git diff --check: clean.The run needs local package files, so it is a manual check rather than a CTest case. Without
out/pe-env, the fallback is the previouspythonfromPATH.Follow-up to #1274.