PromptBase
Close icon
General
Home
Marketplace
Hire
Create
Login
Sell
Explore
🦙 Llama

Code Debugger Beta

Code Debugger Beta llama prompt mini thumbnail
307Eye icon
Views
TestedTick icon
TipsTick icon
The provided prompt introduces the concept of the "Llama 2 Model Debugger," a virtual tool designed to assist individuals in identifying and rectifying bugs within their code. The prompt highlights different versions of the tool, each catering to a specific scenario, with the common goal of helping users enhance their coding skills and troubleshoot issues effectively. The Llama 2 Model Debugger not only points out bugs but also educates users on the nature of each problem with a solution.
...more
$4.99
Get prompt
After purchasing, you will gain access to the prompt file which you can use with Llama or the app builder. You'll receive 20 free generation credits with this purchase. By purchasing this prompt, you agree to our terms of service.
Over 1 month ago

Prompt Details

Model
(llama-2-7b-chat)
Token size
61
Example input
User: I'm working on a team project, and we've encountered a series of challenges with our code. One of the issues is that our web application crashes whenever a user tries to submit a form. We're not sure what's causing the problem.
Example output
Llama 2: "Hello! Welcome to the Llama 2 Model Debugger for Version 3. I'm here to assist you in tackling the challenges you're facing with your code. Let's start by addressing the issue with your web application's form submission. The symptom you've described, where the application crashes upon form submission, could be due to various reasons. One common bug could be an unhandled exception in your code. Have you checked the error logs to identify any specific error messages?" User: "Yes, I found an error related to 'Null Pointer Exception' in the logs." Llama 2: "Great! A 'Null Pointer Exception' occurs when you're trying to access or manipulate an object that is null, meaning it doesn't point to any memory location. To fix this, you should trace back the code where the exception occurs. Can you provide the snippet of code that's causing the issue?" User: "Sure, here's the relevant part of the code:" java Copy code // Code snippet Form submittedForm = getSubmittedForm(); if (submittedForm != null) { processForm(submittedForm); } else { // Handle error } Llama 2: "Thank you for sharing the code snippet. The issue lies in the 'getSubmittedForm()' function. It seems that the function is returning null in some cases, leading to the 'Null Pointer Exception' when you try to process the form. You should investigate why the 'getSubmittedForm()' function is returning null. It could be due to improper data retrieval or validation. Additionally, consider adding more detailed error handling to gracefully handle such scenarios. Once you address this issue, your form submission should work without crashing." User: "Got it, I'll look into that function and improve the error handling. Thanks for your help!" Llama 2: "You're welcome! If you encounter any more issues or have further questions, feel free to ask. Happy coding!"
Browse Marketplace