pros-cli icon indicating copy to clipboard operation
pros-cli copied to clipboard

✨ Add interactive stack trace

Open ryan-doan opened this issue 2 years ago • 6 comments

Summary:

Stack trace now comes with detailed description of where the program fails. This is also saved in a text file in pros-cli/pros/serial/stack_trace.txt

Motivation:

This change help ease the debug of seg faults.

References (optional):

Issue #76

Test Plan:

The code should be tested with stack traces of varied address count, and compared with output from addr2line with hot package, cold package, and monolith to make sure it doesn't omit important information (the algorithm displays addr2line output that contains the character '?' as "??", since these output are most of the time gibberish that doesn't aid debugging, but I'm not sure if this is the case ONLY for gibberish output, which can lead to the algorithm omitting useful debug information).

  • [ ] test item

ryan-doan avatar Sep 30 '22 20:09 ryan-doan

One thing I noticed when looking through the code is that the paths in the code use \, which is a windows only thing. The paths should be changed to use / to be platform independent.

Richard-Stump avatar Oct 04 '22 17:10 Richard-Stump

Ignore all of the suggestions that say "Outdated". Not sure what Github just did.

BennyBot avatar Oct 29 '22 22:10 BennyBot

#242

omegaStag avatar Nov 01 '22 22:11 omegaStag

Progress: 截圖 2024-07-23 上午1 23 13 Any thought on indentation and colors?

Rocky14683 avatar Jul 23 '24 03:07 Rocky14683

Progress: 截圖 2024-07-23 上午1 23 13 Any thought on indentation and colors?

Wonder how this would look on a small window (like the VSCode integrated terminal).

One other interesting thought, get rid of the "Registers at Exception?" section? We might want to consider shaving some of the fat that your average user may not need. Most important part is the stack trace section. (I'm fully aware addr2line provides all this data, not feasible how this is since it's been so long :skull: )

WillXuCodes avatar Jul 23 '24 05:07 WillXuCodes