Skip to content

[enh] Add debugger feature for yunohost cli - #88

Open
zamentur wants to merge 2 commits into
mainfrom
enh-debug
Open

[enh] Add debugger feature for yunohost cli#88
zamentur wants to merge 2 commits into
mainfrom
enh-debug

Conversation

@zamentur

Copy link
Copy Markdown
Member

I wanted some graphical debugger to avoid pdb nightmare...

@fflorent fflorent left a comment

Copy link
Copy Markdown
Contributor

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).

Comment thread ynh-dev
done
}
function run_debug() {
if ! dpkg -l |grep python3-debugpy > /dev/null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ! dpkg -l |grep python3-debugpy > /dev/null
if ! dpkg -l | grep -q python3-debugpy

Comment thread ynh-dev
then
apt install -y python3-debugpy
fi
yunohost firewall allow Both 5678 -4 > /dev/null 2> /dev/null

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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?

Comment thread ynh-dev
dev|--dev) dev "${ARGUMENTS[@]}" ;;
lint|--lint) run_linters "${ARGUMENTS[@]}" ;;
test|--test) run_tests "${ARGUMENTS[@]}" ;;
debug|--debug) run_debug "${ARGUMENTS[@]}" ;;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
debug|--debug) run_debug "${ARGUMENTS[@]}" ;;
debug|--debug) run_debug "${ARGUMENTS[@]}" ;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants