visual-studio-codeesp-idf

How to stop ESP IDF monitor terminal in Visual Studio Code


The output of an ESP-IDF firmware is shown in a terminal window of Visual Studio Code under Ubuntu 24.04:

enter image description here

when there is a fatal error that quickly reboot the system, the terminal is full in few seconds and the old content is overwritten by the new one.

You cannot focus on some lines to read what happens because it automatically scrolls down when the terminal buffer is full. For the same reason you can't easily copy and paste the content elsewhere.

I didn't find a way to stop the terminal (without killing it). Using PlatformIO, for example, I can use CTRL+C that closes the serial connection leaving the content in the terminal for inspection.

I'm not able to do the same with the ESP-IDF Monitor terminal, though.


Solution

  • When the terminal monitor comes up, it says what shortcuts can be used for this purpose: (Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---)1

    Edit:

    use Ctrl+T, then X to exit, if Ctrl+] doesn't work (thanks to @JimmyB).

    Complete set of IDF Monitor shortcuts