# Debugging and common errors

Use validation helpers before batch conversion:

    validate_input("lesson.qmd", format = "learnr", assessment = "both")
    validate_output("lesson-tutorial.Rmd", "lesson.qmd", overwrite = FALSE)

Typical failure causes:

- invalid MCQ YAML schema,
- inaccessible output path,
- duplicate chunk labels from source documents,
- missing Quarto live extension for `quarto-live` output.