-
Notifications
You must be signed in to change notification settings - Fork 32
[enh] Add debugger feature for yunohost cli #88
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds very interesting!
Some real nitpicks (that may be discarded) for now and from my side. I will be interesting in giving a try and see whether the documentation helps me with setting up a debugging environment (though I will probably use nvim-dap instead of vimperator).
| done | ||
| } | ||
| function run_debug() { | ||
| if ! dpkg -l |grep python3-debugpy > /dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if ! dpkg -l |grep python3-debugpy > /dev/null | |
| if ! dpkg -l | grep -q python3-debugpy |
| then | ||
| apt install -y python3-debugpy | ||
| fi | ||
| yunohost firewall allow Both 5678 -4 > /dev/null 2> /dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| yunohost firewall allow Both 5678 -4 > /dev/null 2> /dev/null | |
| yunohost firewall allow Both 5678 -4 &> /dev/null |
BTW, what are the reasons for also hiding errors?
| dev|--dev) dev "${ARGUMENTS[@]}" ;; | ||
| lint|--lint) run_linters "${ARGUMENTS[@]}" ;; | ||
| test|--test) run_tests "${ARGUMENTS[@]}" ;; | ||
| debug|--debug) run_debug "${ARGUMENTS[@]}" ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| debug|--debug) run_debug "${ARGUMENTS[@]}" ;; | |
| debug|--debug) run_debug "${ARGUMENTS[@]}" ;; |
I wanted some graphical debugger to avoid pdb nightmare...