startup: run the debugger with the repository Python #1535
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1535
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1535/head"
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?
@lambirou on GitHub · 2026-11-24 13:44 UTC · original
lambirou:startup/run-venv-python→main· +6 −1 · 2 files · 1 commits · merged 2026-11-24 15:07 UTCProblem
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.