codingame_tools.puzzle_manager.debug¶
debug
¶
Command-line entry point.
python -m codingame_tools.puzzle_manager.debug TARGET_FILE TEST_INDEX [--puzzle-dir DIR]
VS Code debugger launcher for a puzzle working directory's solution--a thin, puzzle_manager-aware
wrapper around codingame_tools.test_runner.debug_stdin.run_debug_stdin. TARGET_FILE (VS Code's
own ${file} macro) is used only to infer the puzzle working directory (see
codingame_tools.puzzle_manager.resolver.infer_puzzle_dir) when --puzzle-dir isn't given--
TEST_INDEX then selects which downloaded .meta/tests/ test case's input/output to run against
(see codingame_tools.puzzle_manager.test_cases_dir.list_downloaded_test_cases).
No --update-expected here (unlike codingame_tools.contribution_manager.debug)--.meta/tests/
is downloaded server truth, regenerated by repair(); there's nothing to accept a local run's
output as a new baseline for.
Not exported from codingame_tools.puzzle_manager's own __init__.py--like test_runner.
debug_stdin, this is a python -m entry point, not a library import.