Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dump and dd #286

Merged
merged 5 commits into from
Jul 13, 2024
Merged

Add dump and dd #286

merged 5 commits into from
Jul 13, 2024

Conversation

Chemaclass
Copy link
Member

@Chemaclass Chemaclass commented Jul 12, 2024

📚 Description

Often, I want to debug the value inside some variables and I ended up writing echo's.
With this dump/dd functions, it's easier to get the context of that debuging value, additionally it's easier to identify/search for those debug statements.

The debug.sh content wont be included in the build result, so it is not affecting the production use of bashunit at all.

🔖 Changes

  • Added dump and dd functions - only available on local dev

🖼️ Demo

Screenshot 2024-07-13 at 15 37 21

✅ To-do list

  • I updated the CHANGELOG.md to reflect the new feature or fix

@Chemaclass Chemaclass added the enhancement New feature or request label Jul 12, 2024
@Chemaclass Chemaclass self-assigned this Jul 12, 2024
Right now, only the files inside src/ will be added to the build result.
Therefore, having debug.sh inside another level src/dev/ it wont include it.
@Chemaclass Chemaclass merged commit eac912b into main Jul 13, 2024
7 checks passed
@Chemaclass Chemaclass deleted the feat/debug branch July 13, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants