Prompt for Debugging Assistant for Error Resolution
.png)
A detailed prompt to leverage AI as a debugging assistant, providing step-by-step diagnostics and targeted solutions for resolving complex software errors efficiently.
Prompt
Act as an expert debugging assistant. Analyze the following error encountered while developing a [Software/Application Type] using [Programming Language/Framework] on [Operating System/Environment]. The error is: '[Full Error Message or Code Snippet]'. The issue occurred when [Describe the Action Being Performed When Error Happened]. I have already attempted [Describe Steps Already Taken to Resolve the Issue]. Provide a step-by-step diagnostic guide to identify the root cause, followed by prioritized solutions. Include potential pitfalls, best practices to prevent recurrence, and relevant documentation or resource links. If the error is ambiguous, suggest the most probable causes based on the context.
Example Output
Act as an expert debugging assistant. Analyze the following error encountered while developing a REST API using Node.js and Express on Ubuntu 22.04. The error is: 'Error: EADDRINUSE: address already in use :::3000'. The issue occurred when attempting to start the development server using npm start. I have already attempted checking for other running processes on port 3000 and changing the port in the configuration. Provide a step-by-step diagnostic guide to identify the root cause, followed by prioritized solutions. Include potential pitfalls, best practices to prevent recurrence, and relevant documentation or resource links. If the error is ambiguous, suggest the most probable causes based on the context.
Comments
Leave a Comment
No comments yet. Be the first to comment!