Skip to content

Results for “debugging”

8 prompts

Explain this stack trace in plain English. Identify where the error actually originates in my code (not library code), the likely cause, and how to fix it. Ask for the relevant code if needed. Stack trace: [paste]

ChatGPT
Coding & Development

Explain a stack trace

Reads a stack trace and points to the real problem.

0

My page breaks on mobile: [describe problem, e.g. horizontal scroll, overlapping elements]. Here's the HTML/CSS: [paste]. Find the cause, fix it with mobile-first CSS, and explain how to test on different screen sizes.

ChatGPT
Coding & Development

Mobile responsive bug fixes

Fixes layouts that break on small screens.

0

Act as a JavaScript expert. What should happen: [expected behaviour] What actually happens: [bug] Code: ```js [paste] ``` Explain the async flow step by step, identify the bug (race condition, missing await, unhandled rejection, etc.), provide fixed code, and suggest patterns to prevent it (Promise.all, AbortControlle…

ChatGPT
Coding & Development

Debug async JavaScript

Fix race conditions, unhandled promises and ordering bugs in async JavaScript.

0

You are a performance engineer. Platform: [browser app, Node.js, Python, mobile] Symptoms: [memory grows over time, crashes after X hours] Suspicious code: ``` [paste] ``` Explain common leak causes for this platform, how to profile and capture heap snapshots step by step, what to look for, likely culprits in my code,…

Claude
Coding & Development

Investigate a memory leak

Find and fix memory leaks in web apps, Node.js services or mobile apps.

0

Review the code below and improve its logging and error handling. Language/framework: [details] Logging tool: [details] Code: ``` [paste] ``` Add: structured logs with useful context (without secrets or personal data), appropriate log levels, custom error types where helpful, user-safe error messages, retries for tran…

ChatGPT
Coding & Development

Better logging and error handling

Make failures easy to diagnose with structured logs, meaningful errors and safe messages for users.

0

Act as a computer science teacher for children. Age group: [age] Concept: [sequences, loops, conditionals, variables, debugging] Group size: [number] Time: [minutes] Materials: [paper, cards, floor space] Design an unplugged activity with: learning goal, setup, step-by-step instructions, how it connects to real code,…

ChatGPT
Education & Learning

Teach kids coding concepts without a computer

Fun unplugged activities that teach sequences, loops, conditions and debugging to children.

0

Explain this error in plain English and help me fix it. Language/framework: [e.g. Python 3.12 / Node 20 / Laravel] What I was doing: [action] Error: ``` [paste error and stack trace] ``` Relevant code: ``` [paste code] ``` Please give: 1. What the error means 2. The most likely cause (and other possible causes) 3. The…

ChatGPT
Coding & Development

Explain an error message and fix it

Paste a confusing error or stack trace and get a plain-English explanation, the likely cause and a fix.

0

Act as an expert [language] debugger. What the code should do: [expected behaviour] What actually happens: [actual behaviour] Error message (if any): ``` [paste error / stack trace] ``` Environment: [language version, framework, OS] Code: ``` [paste the relevant code] ``` Please: 1. Identify the root cause (not just t…

ChatGPT
Coding & Development

Find and fix the bug, with an explanation

Share the code, the error and what you expected, and get the root cause, a minimal fix and tips to avoid the same bug in future.

0