Redirecting Debug Output

is it possible, in uecide, to redirect the Debug output from the current Serial.* to Serial1.* or Serial2.*?

If not in uecide, any idea where to modify what?


You mean for the ESP32? Yes,

You mean for the ESP32? Yes, I think it can, though I have never tried it:


As simple as that.

it works!

it works!

Apparently, when 2 or more of those commands are given,


the last one wins.Thanks.

Yeah, there is a simple

Yeah, there is a simple numeric flag that contains the number of the debug UART. When you select one it just sets that number, so the last one is always the one that is the debug. If you set it to "false" it should revert back to Serial regardless of what has gone before.

Looks like the ESP crash

Looks like the ESP crash reports like:

    entry 0x400806ac
    ***ERROR*** A stack overflow in task async_tcp has been detected.

    Backtrace: 0x4008d430:0x3ffe6a10 0x4008d661:0x3ffe6a30 0x4008d678:0x3ffe6a50 0x4008a494:0x3ffe6a70
     0x4008c1d8:0x3ffe6a90 0x4008c18e:0x6e656d2f

aren't being redirected. Any idea for redirecting them also?

I doubt you can. That's not

I doubt you can. That's not the Arduino wrapper that's generating that - that'll be in the bootloader or the IDF and will be locked to UART 0 I suspect.

If there is a way of changing it it'll be through the IDF functions.