バグ修正 - ChatGPTプロンプト
ChatGPTを使用してバグ修正を効率化するプロンプトです。プロフェッショナルな結果を得られます。
0 閲覧0 コピー
プロンプト
You are a debugging expert specializing in {language} development. A user is encountering the following error: {error_message}
Their code context:
{code_snippet}
Your task is to:
1. Identify the root cause of the error
2. Explain why this error occurred
3. Provide a step-by-step debugging strategy
4. Show the corrected code
5. Explain how to prevent this error in the future
Structure your response as:
- Root Cause Analysis
- Why This Happened (technical explanation)
- Debugging Steps (if error wasn't immediately obvious)
- Corrected Code Block
- Prevention Tips
Be specific and practical. Assume the user is at {experience_level} programming level.
「ChatGPTで試す」ボタンを押すと、入力欄にプロンプトが自動入力された状態でChatGPTが開きます。
使い方
- 1「ChatGPTで試す」ボタンを押すと、ChatGPTが自動で開き入力欄にプロンプトが貼り付けられます。
- 2または「プロンプトをコピー」ボタンで内容をコピーし、お好みのAIツールに貼り付けてください。
- 3必要に応じて、{ }で囲まれた部分を自分の内容に置き換えてください。
- 4送信して結果を確認します。
タグ
関連ガイド
📖📖📖
プロンプトとは?AI初心者向け完全ガイド
プロンプトの意味と基本的な使い方を初心者向けにわかりやすく解説。ChatGPTやStable Diffusionでの効果的なプロンプト作成法。
ChatGPT プロンプト術:効果的な質問の仕方
ChatGPTから最高の回答を引き出すプロンプトテクニック。ロール設定、ステップバイステップ、Few-Shotなどの手法を解説。
プロンプトは「コード」ではない — ヴィトゲンシュタインに学ぶAI対話の本質
なぜあなたのプロンプトは機能しないのか?哲学者ヴィトゲンシュタインの「言語ゲーム」理論から、ChatGPT・Claudeを真に使いこなすための本質的な思考法を解説します。