Skip to content

if g:pymode_breakpoint_cmd is empty, skip pymode#breakpoint#operate#840

Closed
timfeirg wants to merge 1 commit intopython-mode:developfrom
timfeirg:develop
Closed

if g:pymode_breakpoint_cmd is empty, skip pymode#breakpoint#operate#840
timfeirg wants to merge 1 commit intopython-mode:developfrom
timfeirg:develop

Conversation

@timfeirg
Copy link
Copy Markdown

@timfeirg timfeirg commented Jan 28, 2018

This PR aims to fix this:

When g:pymode_breakpoint_cmd is empty string, calling pymode#breakpoint#operate will just delete the given line, which can be confusing.

This is how:

  • Added a error message to let user know what's gone wrong, and skip the rest since there's nothing to do really.
  • When calculating g:pymode_breakpoint_cmd, try to find pdb package as well.

@fmv1992
Copy link
Copy Markdown
Contributor

fmv1992 commented Jan 28, 2018

thanks; fixed in commit 371eba4e7f334dc239053124dae94cf7da8d9c61 with minor changes

@fmv1992 fmv1992 closed this Jan 28, 2018
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