Master's Thesis
RexStepper 2.0: interactive debugging for regular expressions in the browser
— 2023
Key information
Authors:
Supervisors:
Published in
June 16, 2023
Abstract
Expressões regulares são manifestamente difíceis de se elaborarem corretamente, sendo comum os desenvolvedores recorrerem a abordagens de tentativa e erro. Ainda assim, pouca atenção tem sido dada pela comunidade de investigadores ao desenvolvimento de eficazes ferramentas de debug para expressões regulares. Apresentamos o REXSTEPPER 2.0, um novo debugger de referência para resolver problemas em expressões regulares de JavaScript no browser. O REXSTEPPER 2.0 foi construído com base no REXSTEPPER 1.0, uma versão preliminar da ferramenta. O REXSTEPPER 2.0 melhora substancialmente a usabilidade e a correção da ferramenta original, incluindo: (1) um novo algoritmo de construção de árvore de matching correto e otimizado; (2) um novo mecanismo para controle detalhado do processo de matching; e (3) uma integração completa entre os modos de code-stepping e de visualização da árvore de matching. De modo a validar a ferramenta, realizámos um estudo empírico, envolvendo 20 participantes, com o intuito de avaliar a sua eficácia e experiência de utilizador. Regular expressions are notoriously difficult to get right, with developers often having to resort to trial-and-error approaches. Even so, little attention has been given by the research community to the development of effective debugging tools for regular expressions. We present RexStepper 2.0, a new reference debugger for troubleshooting JavaScript regular expressions in the browser. RexStepper 2.0 was built on top of RexStepper 1.0, a preliminary version of the tool. RexStepper 2.0 substantially improves the usability and correctness of the original tool by including: (1) a new, correct and optimized matching tree construction algorithm; (2) a new mechanism for fine-grained control over the matching process; and (3) a tight integration between code-stepping and matching-tree visualization modes. In order to validate the tool, we conducted an empirical study involving 20 participants, with the purpose of evaluating its effectiveness and user experience.
Publication details
Authors in the community:
Supervisors of this institution:
RENATES TID
203834291
Degree Name
Mestrado em Engenharia Informática e de Computadores
Fields of Science and Technology (FOS)
electrical-engineering-electronic-engineering-information-engineering - Electrical engineering, electronic engineering, information engineering
Keywords
- Expressões Regulares
- Code-Step
- Debuggers
- JavaScript
- Regular Expressions
Publication language (ISO code)
eng - English
Rights type:
Embargo lifted
Date available:
April 11, 2024
Institution name
Instituto Superior Técnico