Skip to content

codingame_tools.contribution_manager.debug

debug

Command-line entry point.

python -m codingame_tools.contribution_manager.debug TARGET_FILE ORDINAL SIDE [--contribution-dir DIR] [--update-expected]

VS Code debugger launcher for a contribution working directory's solution--a thin, contribution_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 contribution working directory (see codingame_tools.contribution_manager.resolver. infer_contribution_dir) when --contribution-dir isn't given--ORDINAL/SIDE then select which tests/ test case's input/output to run against (see codingame_tools.contribution_manager. test_cases_dir.list_local_test_cases).

--update-expected overwrites the selected test case's output.txt with the captured output instead of comparing against it--meaningful here (unlike codingame_tools.puzzle_manager.debug) because data/tests/ is author-owned content, not downloaded server truth.

Not exported from codingame_tools.contribution_manager's own __init__.py--like test_runner. debug_stdin, this is a python -m entry point, not a library import.