You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "lucasssvaz (via GitHub)" <gi...@apache.org> on 2023/05/24 12:44:09 UTC
[GitHub] [nuttx-apps] lucasssvaz commented on pull request #1774: testing: Add application to gather debug information (dbginfo)
lucasssvaz commented on PR #1774:
URL: https://github.com/apache/nuttx-apps/pull/1774#issuecomment-1561072705
> Hey there @lucasssvaz, that looks useful! :-)
>
> Two questions:
>
> 1. The application name contains `dbg` but it is more `host` / `build` / `diangostics` related, does not provide any debug functionality.. so the name is a bit misleading.. should it be more `buildinfo` or `nxdiags`? Is there any specific reason it is named `dbginfo`? Do you use this tool in other projects? Is data format standardized in any way in alignment with other applications / tools?
>
> 2. This is not a strictly application that will run on an embedded system.. so maybe `nuttx.git/tools` would be better place? Or the intention is to have it running on a test build as part of CI automation in order to get all those data from a running target? Are they stored in a file? How much flash does it eat? How data can be transferred out of the running target?
1 - I couldn't think about a good name for it 🤣 I like your suggestion of `nxdiag` (just like `dxdiag` for directx). And no, the data is not standardized. Just some parameters that might affect the build and use of the NuttX system.
2 - The idea is to force the user to run it within the microcontroller to ensure that they have at least the NuttX build environment set up properly (before even starting to debug). If even then, after a clean NuttX installation, they can't build the project we can manually run the script through the CLI.
I tested it with my machine with all the parameters enabled and the complete NuttX binary was 133 kB (compared to 568 kB when using the `wifi` config) on ESP32. The data was transferred by coping and pasting the info but nothing prevents the user from mounting some kind of filesystem on a removable device and piping the output of the application to a file in it. I've tested this and the generated text file is still quite small (for my system), around 45 kB.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org