question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

esp32_exception_decoder do not decode with option time.

See original GitHub issue

Vscode 1.56.2 PlatformIO Core 5.1.1 Home 3.3.4 PLATFORM Espressif 32 (3.2.0) BOARD M5Stack Grey FRAMEWORK arduino

monitor_filters = esp32_exception_decoder decoded.

monitor_filters = esp32_exception_decoder,time not decoded.

time is processed first, and the timestamped text is passed to filter_exception_decoder.py, so the regex won’t match?

Is it possible to control the order in which filters are processed? If we can’t control the order, then modifying the regular expression might help.

In my environment, decoded with option time. filter_exception_decoder.py line:35 r"(?:^\d+:\d+:\d+.\d+ > Backtrace:|^Backtrace:) ?((0x[0-9a-f]+:0x[0-9a-f]+ ?)+)\s*"

However, if you use it with options other than time, it might not be decoded.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
GOB52commented, May 22, 2021

I wrote

monitor_filters = time, esp32_exception_decoder

and it worked.

Analyzed how the filter is processed.

https://github.com/platformio/platformio-core/blob/master/platformio/commands/device/helpers.py line:91

miniterm.TRANSFORMATIONS[obj.NAME] = obj

https://github.com/pyserial/pyserial/blob/master/serial/tools/miniterm.py line:352

TRANSFORMATIONS = {
    'direct': Transform,    # no transformation
    'default': NoTerminal,
    'nocontrol': NoControls,
    'printable': Printable,
    'colorize': Colorize,
    'debug': DebugIO,
}

line:454

transformations = [EOL_TRANSFORMATIONS[self.eol]] + [TRANSFORMATIONS[f]
                                                             for f in self.filters]
self.tx_transformations = [t() for t in transformations]
self.rx_transformations = list(reversed(self.tx_transformations))

line:505

for transformation in self.rx_transformations:
    text = transformation.rx(text)`

Except for Miniterm’s built-in filters, they seem to be processed in the reverse order of enumeration.

If this behavior is a specification, could you please add a note in the documentation about the processing order when multiple filters are specified in monitor_filters?

(Sorry if there is already a description about the processing order).

0reactions
stale[bot]commented, Sep 20, 2022

This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Esp32_exception_decoder in serial terminal - PlatformIO IDE
Am I missing something I thought the esp32_exception_decoder support was added 4.3 . I have 4.3.4 but get an error when running ?...
Read more >
esp32_exception_decoder do not decode with option time.
An open source ecosystem for IoT development Cross-platform code builder and library manager. Continuous and IDE integration. Arduino, ESP8266 ...
Read more >
ESP32 Tips - Physical Computing
Step 2: Select “ESP Exception Decoder” from Tools menu. Then, open the Arduino IDE. Under the Tools menu, there will be a new...
Read more >
How to decode ESP32 backtrace in Arduino IDE? (Mac OS)
How can I decode the backtrace?I tried the ESP32 Exception Decoder, but it gave an error: null-elf-gdb not found! Arduino IDE on Mac....
Read more >
Thomas Sarlandie (@sarfata) / Twitter
Story time… ... I don't think I've ever actually said the words “get off my lawn,” but I'm much more ... A Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found