バグ修正 - 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.

使い方

  1. 1上のプロンプトをコピーボタンでコピーします。
  2. 2ChatGPTを開き、プロンプト入力欄に貼り付けます。
  3. 3必要に応じて、{ }で囲まれた部分を自分の内容に置き換えてください。
  4. 4生成を実行して結果を確認します。

タグ