Empowering Student Debugging in Parallel Programming with Execution Traces and Large Language Models
- URL: http://arxiv.org/abs/2606.14607v1
- Date: Fri, 12 Jun 2026 16:30:41 GMT
- Title: Empowering Student Debugging in Parallel Programming with Execution Traces and Large Language Models
- Abstract summary: We present ParaView, an educational tool designed to help students understand, debug and correct issues in parallel programs written in C/C++.<n>ParaView provides transparent execution recording and visualization to make parallel execution observable and comprehensible.<n>Our findings suggest that recording-visualization tools like ParaView, complemented by artificial intelligence (AI), can improve teaching and learning of concurrent programming.
- Score: 3.8288581517558318
- License: http://creativecommons.org/licenses/by-nc-sa/4.0/
- Abstract: Concurrent programming is a core component of Computer Science curricula, yet remains notoriously difficult for students to master due to its inherent complexity and the nondeterministic nature of concurrency bugs such as deadlocks and race conditions. In this work, we present ParaView, an educational tool designed to help students understand, debug, and correct concurrency issues in parallel programs written in C/C++. ParaView provides transparent execution recording and visualization to make parallel execution observable and comprehensible. We evaluated ParaView through a series of debugging and implementation tasks, with 17 students participating. Results showed a significant improvement in debugging and implementation successes compared to previous course iterations. A student survey confirmed that most participants found ParaView helpful. To further support learning outside the classroom, we explored using Large Language Models (LLMs) to analyze concurrency bugs and suggest fixes. While LLMs were highly effective in identifying bugs and explaining execution traces, the correctness of their bug fixes varied, especially for more complex synchronization patterns. Our findings suggest that recording-visualization tools like ParaView, complemented by artificial intelligence (AI), can improve teaching and learning of concurrent programming.
Related papers
- Teaching Language Models How to Code Like Learners: Conversational Serialization for Student Simulation [4.361813083295904]
We propose a method for training open-weight artificial programming learners using authentic student process data.<n>Our approach serializes temporal log traces into a conversational format, representing each student's problem-solving process.<n>Student code submissions and environment feedback, such as test outcomes, grades, and error traces, form alternating conversational turns.
arXiv Detail & Related papers (2026-04-12T16:38:42Z) - Design and Implementation of Data Acquisition and Analysis System for Programming Debugging Process Based On VS Code Plug-In [1.1521859713894205]
This paper implements a data acquisition and analysis system for programming debug process based on VS Code plug-in.<n>The system supports a variety of programming languages, integrates debug tasks and data acquisition functions.<n>It uploads the data to the platform database to realize the whole process monitoring and feedback, and improves the teaching effect.
arXiv Detail & Related papers (2025-11-08T03:18:34Z) - Modeling Student Learning with 3.8 Million Program Traces [52.153493498021895]
We introduce a dataset of over 3.8 million programming reasoning traces from users of Pencil Code.<n>We find that models trained on real traces are stronger at modeling diverse student behavior.<n>We show that we can help students recover from mistakes by steering code generation models to identify a sequence of edits that will result in more correct code.
arXiv Detail & Related papers (2025-10-06T17:37:17Z) - An Investigation Into Secondary School Students' Debugging Behaviour in Python [0.0]
This paper investigates the debug behaviour of K-12 students learning a text-based programming language.<n>A range of behaviours were exhibited by students, skewed towards being ineffective.<n>We argue that students struggling to debug possess fragile knowledge, a lens through which we view the results.
arXiv Detail & Related papers (2025-08-20T16:34:23Z) - Zebra-CoT: A Dataset for Interleaved Vision Language Reasoning [109.84783476090028]
We introduce $textbfZebra-CoT$, a diverse large-scale dataset with 182,384 samples.<n>We focus on four categories of tasks where sketching or visual reasoning is especially natural.<n>Fine-tuning Bagel-7B yields a model that generates high-quality interleaved visual reasoning chains.
arXiv Detail & Related papers (2025-07-22T16:35:36Z) - A Proposal for a Debugging Learning Support Environment for Undergraduate Students Majoring in Computer Science [0.0]
Students do not know how to use a debugger or have never used one.
We implemented a function in Scratch that allows for self-learning of correct breakpoint placement.
arXiv Detail & Related papers (2024-07-25T03:34:19Z) - VDebugger: Harnessing Execution Feedback for Debugging Visual Programs [103.61860743476933]
We introduce V Debugger, a critic-refiner framework trained to localize and debug visual programs by tracking execution step by step.
V Debugger identifies and corrects program errors leveraging detailed execution feedback, improving interpretability and accuracy.
Evaluations on six datasets demonstrate V Debugger's effectiveness, showing performance improvements of up to 3.2% in downstream task accuracy.
arXiv Detail & Related papers (2024-06-19T11:09:16Z) - CogCoM: A Visual Language Model with Chain-of-Manipulations Reasoning [61.21923643289266]
Chain of Manipulations is a mechanism that enables Vision-Language Models to solve problems step-by-step with evidence.<n>After training, models can solve various visual problems by eliciting intrinsic manipulations (e.g., grounding, zoom in) actively without involving external tools.<n>Our trained model, textbfCogCoM, achieves state-of-the-art performance across 9 benchmarks from 4 categories.
arXiv Detail & Related papers (2024-02-06T18:43:48Z) - De-fine: Decomposing and Refining Visual Programs with Auto-Feedback [75.62712247421146]
De-fine is a training-free framework that decomposes complex tasks into simpler subtasks and refines programs through auto-feedback.
Our experiments across various visual tasks show that De-fine creates more robust programs.
arXiv Detail & Related papers (2023-11-21T06:24:09Z) - A Stepwise Distillation Learning Strategy for Non-differentiable Visual Programming Frameworks on Visual Reasoning Tasks [48.181520570707654]
We propose Stepwise Distillation learning strategy for non-differentiable VPorg across various VR tasks.<n>Our SDVP stepwise distills the capabilities of existing, well-trained small task-specific models for visual sub-tasks in VProg into the much larger VLMs invoked by corresponding visual sub-modules.
arXiv Detail & Related papers (2023-09-18T14:28:47Z) - Teaching Large Language Models to Self-Debug [62.424077000154945]
Large language models (LLMs) have achieved impressive performance on code generation.
We propose Self- Debugging, which teaches a large language model to debug its predicted program via few-shot demonstrations.
arXiv Detail & Related papers (2023-04-11T10:43:43Z) - Eye: Program Visualizer for CS2 [1.319058156672392]
Eye is an interactive tool that visualizes a program's execution as it runs.
It demonstrates properties and usage of data structures in a general environment.
Eye opens up a gateway for CS2 students to more easily understand myriads of programs that are available on online programming websites.
arXiv Detail & Related papers (2021-01-28T16:16:59Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.