International Business Machines Corporation
CREATION OF MINIMAL WORKING EXAMPLES AND ENVIRONMENTS FOR TROUBLESHOOTING CODE ISSUES
Last updated:
Abstract:
A system for generating a minimum working example (MWE) of the source code of a computer program is provided. The system receives the source code and executes the computer program. The system encounters a runtime error and obtains a stack trace from the execution of the computer program. The stack trace identifies runtime errors and the code segments that were executed that led to the runtime error. The system uses the stack trace to identify one or more variables that affect a most recently executed segment of the source code when the runtime error occurred. The system identifies one or more segments of the source code that do not affect the identified relevant variables. The system generates an MWE of the source code by pruning the identified one or more segments from the source code.
Utility
10 Jan 2020
15 Jul 2021