JavaScript Errors and Debugging Dataset

Published: 12 October 2026| Version 1 | DOI: 10.17632/n5zphm4cdv.1
Contributor:

Description

JavaScript Errors and Debugging Dataset is a teaching and research dataset of 750 scenarios for analysing JavaScript defects, explaining their causes, and checking corrections. It combines 453 records associated with the open BugsJS benchmark with author-created teaching scenarios that add examples for nine error categories and several execution environments. Every record has a stable ID, faulty and corrected code, expected and observed behaviour, a root-cause description, a test method, provenance metadata, and a validation status. The dataset supports debugging instruction, reproducible research on automated defect detection, and controlled evaluation of tools that classify errors or propose fixes. It is not a survey of student mistakes and does not support estimates of defect prevalence among developers. Keywords: JavaScript; debugging; software defects; program repair; automated program repair; error classification; BugsJS; benchmark; software testing; code correction; static analysis; web programming

Files

Steps to reproduce

1. Treat `javascript_errors_dataset.json` as the canonical dataset. 2. Validate the structure against `schema.json`. 3. Run `validate_dataset.py` with Python 3 to verify the record count, ID uniqueness, code exclusion from metadata-only BugsJS records, and JSON/CSV/XLSX row-count consistency. 4. Use `javascript_errors_dataset.csv` for tabular analysis and `javascript_errors_dataset.xlsx` for browsing and filtering. 5. Interpret `validation_status` literally. Records marked `manual_required` were not executed as stand-alone tests in this release. 6. The 297 records with `source_type = synthetic_example` contain author-created teaching code. Run them only in the environment stated by `runtime_environment` and with the context described in `notes`. 7. The 453 BugsJS-related records are metadata-only references. They contain no upstream code or patches. Use `source_reference` to inspect or reproduce the corresponding upstream record in its original project environment.

Categories

Computer Science, Software Engineering

Licence