Skip to content

Commit ab2991d

Browse files
committed
🚧 Debug code embedding script
1 parent 463b6b3 commit ab2991d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/scripts/format_snippet_prints.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def execute_and_capture_prints(code: str) -> list[str]:
3030
captured_output.write(f"Error: {e}")
3131

3232
sys.stdout = sys.__stdout__
33+
print(f"{captured_output.getvalue().strip().splitlines()}")
3334
return captured_output.getvalue().strip().splitlines()
3435

3536

@@ -39,6 +40,8 @@ def process_file(input_file_path: Path, output_file_path: Path) -> None:
3940
lines = f.readlines()
4041

4142
print_outputs = execute_and_capture_prints("".join(lines))
43+
print("\nPrint outputs:")
44+
print(print_outputs)
4245

4346
formatted_lines = []
4447
print_index = 0

0 commit comments

Comments
 (0)