# デバッグ

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/clion/llms.txt).

デバッグセッション中、デバッガーはプログラムの実行を妨害し、内部で何が起こっているかに関する情報を提供します。 CLion でのデバッグの基礎はこのビデオで学べます：

[Video](https://www.youtube.com/v/5wGsRdumueU)

> **Tip:**
> [CLion デバッガー(英語)](https://www.youtube.com/playlist?list=PLQ176FUIyIUawCufBKmmWkRq2t5sl1xsM)プレイリストで他の動画を見つけてください。

Procedure: 一般的なデバッグ手順

1. [デバッグプロファイル](debug-profiles.html)を設定します。

2. CMake プロジェクトの場合、必要な [CMake プロファイル](cmake-profile.html)を選択します。

3. 必要に応じて、既存の [実行 / デバッグ構成](run-debug-configuration.html)を作成または変更します。

4. コードに [ブレークポイント](using-breakpoints.html)を配置します。

5. デバッグ <構成名>   ボタン ![デバッグ](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.startDebugger_dark.svg) をクリックするか、他のオプションを使用して [デバッグセッションを開始し](starting-the-debugger-session.html#start-debugging)ます。

> **Tip:**
> [一時停止または再開](starting-the-debugger-session.html#pause)必要に応じてセッション。

> **Tip:**
> デバッグセッション中は、 [コードをステップ実行](stepping-through-the-program.html)、 [式を評価](examining-suspended-program.html#evaluating-expressions)、その場で値を変更し、 [ウォッチ](examining-suspended-program.html#watches)や [ウォッチポイント](using-watchpoints.html)を設定できます。

デバッグセッションを開始すると、 [デバッグツールウィンドウ](debug-tool-window.html)をマークする ![デバッグ](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.startDebugger.svg) アイコンが ![the Active Debugger icon](https://resources.jetbrains.com/help/img/idea/2026.3/debug_active.png) に切り替わり、デバッグプロセスがアクティブであることを示します。

## 便利なデバッガーのショートカット

|  アクション  |  ホットキー  |
| --- | --- |
|  [ブレークポイントの切り替え](using-breakpoints.html#set-line-breakpoint)  |  `Ctrl+F8` (Windows), `⌘ F8` (macOS), `⌘ F8` (IntelliJ IDEA Classic (macOS)), `⌃ Quote` (macOS System Shortcuts), `Ctrl+F8` (XWin), `Ctrl+F8` (GNOME), `Ctrl+8` (KDE), `Ctrl+F8` (Emacs), `Ctrl+F8` (Sublime Text), `⌘ F8` (Sublime Text (macOS)), `⌘ \` (Xcode), `F9` (Visual Studio), `F9` (Visual Studio (macOS)), `F9` (ReSharper), `F9` (ReSharper (macOS)), `F9` (QtCreator), `F8` (QtCreator (macOS)), `Ctrl+F8` (NetBeans), `Ctrl+Shift+B` (Eclipse), `⌘ ⇧ B` (Eclipse (macOS))  |
|  [再開](starting-the-debugger-session.html#resume)  |  `F9` (Windows), `⌘ ⌥ R` (macOS), `F9` (IntelliJ IDEA Classic (macOS)), `⌃ \` (macOS System Shortcuts), `F9` (XWin), `F9` (GNOME), `F9` (KDE), `F9` (Emacs), `F9` (Sublime Text), `F9` (Sublime Text (macOS)), `⌘ ⌃ Y` (Xcode), `F5` (Visual Studio), `F5` (Visual Studio (macOS)), `F5` (ReSharper), `F5` (ReSharper (macOS)), `F5` (QtCreator), `⌘ Y` (QtCreator (macOS)), `F5` (NetBeans), `F8` (Eclipse), `F8` (Eclipse (macOS))  |
|  [ステップオーバー](stepping-through-the-program.html#step-over)  |  `F8` (Windows), `F8` (macOS), `F8` (IntelliJ IDEA Classic (macOS)), `⌘ Quote` (macOS System Shortcuts), `F8` (XWin), `F8` (GNOME), `F8` (KDE), `F8` (Emacs), `F8` (Sublime Text), `F8` (Sublime Text (macOS)), `F6` (Xcode), `F10` (Visual Studio), `F10` (Visual Studio (macOS)), `F10` (ReSharper), `F10` (ReSharper (macOS)), `F10` (QtCreator), `⌘ ⇧ O` (QtCreator (macOS)), `F8` (NetBeans), `F6` (Eclipse), `F6` (Eclipse (macOS))  |
|  [ステップイン](stepping-through-the-program.html#step-into)  |  `F7` (Windows), `F7` (macOS), `F7` (IntelliJ IDEA Classic (macOS)), `⌘ ;` (macOS System Shortcuts), `F7` (XWin), `F7` (GNOME), `F7` (KDE), `F7` (Emacs), `F7` (Sublime Text), `F7` (Sublime Text (macOS)), `F7` (Xcode), `F11` (Visual Studio), `⌘ F11` (Visual Studio (macOS)), `F11` (ReSharper), `⌘ F11` (ReSharper (macOS)), `F11` (QtCreator), `⌘ ⇧ I` (QtCreator (macOS)), `F7` (NetBeans), `F5` (Eclipse), `F5` (Eclipse (macOS))  |
|  停止  |  `Ctrl+F2` (Windows), `⌘ F2` (macOS), `⌘ F2` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ .` (macOS System Shortcuts), `Ctrl+F2` (XWin), `Ctrl+F2` (GNOME), `Ctrl+2` (KDE), `Ctrl+F2` (Emacs), `Ctrl+F2` (Sublime Text), `Ctrl+F2` (Sublime Text (macOS)), `⌘ .` (Xcode), `Shift+F5` (Visual Studio), `⇧ F5` (Visual Studio (macOS)), `Shift+F5` (ReSharper), `⇧ F5` (ReSharper (macOS)), `Shift+F5` (QtCreator), `⌘ ⇧ Y` (QtCreator (macOS)), `Shift+F5` (NetBeans), `Ctrl+F2` (Eclipse), `⌘ F2` (Eclipse (macOS))  |
|  [ブレークポイントの詳細 / すべてのブレークポイントを表示する](using-breakpoints.html#breakpoint-properties)  |  `Ctrl+Shift+F8` (Windows), `⌘ ⇧ F8` (macOS), `⌘ ⇧ F8` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ F8` (macOS System Shortcuts), `Ctrl+Shift+F8` (XWin), `Ctrl+Shift+F8` (GNOME), `Ctrl+Shift+F8` (KDE), `Ctrl+Shift+F8` (Emacs), `Ctrl+Shift+F8` (Sublime Text), `⌘ ⇧ F8` (Sublime Text (macOS)), `⌘ ⇧ F8` (Xcode), `Alt+F9` (Visual Studio), `⌥ F9` (Visual Studio (macOS)), `Alt+F9` (ReSharper), `⌥ F9` (ReSharper (macOS)), `Ctrl+Shift+F8` (QtCreator), `⌘ ⇧ F8` (QtCreator (macOS)), `Ctrl+Shift+F8` (NetBeans), `Ctrl+Shift+F8` (Eclipse), `⌘ ⇧ F8` (Eclipse (macOS))  |
|  キャレット上のコードをデバッグ  |  `Shift+F9` (Windows), `⌃ D` (macOS), `⇧ F9` (IntelliJ IDEA Classic (macOS)), `⌥ ⇧ D` (macOS System Shortcuts), `Shift+F9` (XWin), `Shift+F9` (GNOME), `Shift+F9` (KDE), `Shift+F9` (Emacs), `Shift+F9` (Sublime Text), `⌃ D` (Sublime Text (macOS)), `⌘ R` (Xcode), `Alt+F5` (Visual Studio), `⌥ F5` (Visual Studio (macOS)), `Alt+F5` (ReSharper), `⌥ F5` (ReSharper (macOS)), `F5` (QtCreator), `⌘ Y` (QtCreator (macOS)), `Ctrl+F5` (NetBeans), `Alt+Shift+D` (Eclipse), `⌘ F11` (Eclipse (macOS)) （  `main`  メソッド内）、または `Alt+Shift+F9` (Windows), `⌃ ⌥ D` (macOS), `⌥ ⇧ F9` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ D` (macOS System Shortcuts), `Alt+Shift+F9` (XWin), `Alt+Shift+F9` (GNOME), `Alt+Shift+F9` (KDE), `Alt+Shift+F9` (Emacs), `Alt+Shift+F9` (Sublime Text), `⌃ ⌥ D` (Sublime Text (macOS)), `⌘ ⌥ R` (Xcode), `Alt+Shift+F9` (Visual Studio), `⌃ ⌥ D` (Visual Studio (macOS)), `Alt+Shift+F9` (ReSharper), `⌃ ⌥ D` (ReSharper (macOS)), `Alt+Shift+F9` (QtCreator), `⌃ ⌥ D` (QtCreator (macOS)), `Alt+Shift+F9` (NetBeans), `Alt+Shift+F9` (Eclipse), `⌃ ⌥ D` (Eclipse (macOS))  |

## See also

### コンセプト

[Run/Debug Configurations](run-debug-configuration.html) [ブレークポイント](using-breakpoints.html) [デバッグプロファイル](debug-profiles.html) [エージェンティックデバッグ](agentic-debugging.html)

### リファレンス

[デバッグツールウィンドウ](debug-tool-window.html)

### 外部リンク

[Webinar Recording: CLion Ask Me Anything Session: Debugger](https://www.youtube.com/watch?v=Kz5NQiji9YU5&t=244s) [Video playlist: CLion Debugger](https://www.youtube.com/playlist?list=PLQ176FUIyIUawCufBKmmWkRq2t5sl1xsM) [CLion Debugging - Fundamentals](https://blog.jetbrains.com/clion/2020/10/clion-debugging-part-1-fundamentals) [CLion Debugging Beyond the Basics - Part 1 - Suspended](https://blog.jetbrains.com/clion/2021/03/clion-debugging-beyond-the-basics-part-1-suspended) [CLion Debugging Beyond the Basics - Part 2 - Dynamic](https://blog.jetbrains.com/clion/2021/03/clion-debugging-beyond-the-basics-part-2-dynamic) [CLion Debugging Beyond the Basics - Part 3 - Beyond Local](https://blog.jetbrains.com/clion/2021/05/clion-debugging-beyond-the-basics-part-3-beyond-local)

