A case study of automatic debugging problem generation using novice programmers' bug fix histories

DOI Open Access
  • AKIYAMA Gakuto
    Graduate School and Faculty of Information Science and Electrical Engineering, Kyushu University
  • NAKAMURA Tsukasa
    Graduate School and Faculty of Information Science and Electrical Engineering, Kyushu University
  • KONDO Masanari
    Graduate School and Faculty of Information Science and Electrical Engineering, Kyushu University
  • KAMEI Yasutaka
    Graduate School and Faculty of Information Science and Electrical Engineering, Kyushu University
  • UBAYASHI Naoyasu
    Graduate School and Faculty of Information Science and Electrical Engineering, Kyushu University

Bibliographic Information

Other Title
  • プログラミング初学者のバグ修正履歴を用いたデバッグ問題自動生成の事例研究

Abstract

<p>The debugging support for beginner programmers has been an active research area in recent years. However, instead of directly supporting their debugging, training such programmers to be intermediate programmers by using exercises to debug programs is overlooked. In this training, it is important to prepare the programs including bugs that capture the tendency of beginner programmers. Therefore, we focused on Learning-Mutation, which learns the bugs using machine translation from buggy programs and fixed programs, and automatically induces bugs into programs. In this study, we applied Learning-Mutation to the programs written by beginner programmers at Kyushu University. By comparing the induced bugs by Learning-Mutation with the actual bugs by such programmers, we evaluated whether Learning-Mutation can be used to support the exercises by preparing the programs including bugs. As a result, the induced bugs are similar to the actual bugs, and the patterns of bugs that are forgetting semicolons and undeclaring variables or functions accounted for more than 36% when the number of tokens was small. On the other hand, as the number of tokens increased, the number of incorrect expressions increased. Furthermore, although there are bugs that are difficult to generate, beam search relieves this difficulty.</p>

Journal

  • Computer Software

    Computer Software 39 (4), 4_10-4_16, 2022-10-25

    Japan Society for Software Science and Technology

Related Projects

See more

Details 詳細情報について

  • CRID
    1390576037461571456
  • DOI
    10.11309/jssst.39.4_10
  • ISSN
    02896540
  • Text Lang
    ja
  • Data Source
    • JaLC
    • KAKEN
  • Abstract License Flag
    Disallowed

Report a problem

Back to top