Skip to content
This repository

Fixed a writer the duplicate breakpoints when working with Django #39

Merged
merged 1 commit into from almost 2 years ago

2 participants

Mikhail Andreev Andreas Klöckner
Mikhail Andreev
adw0rd commented June 16, 2012

When we work with the Django runserver, then pressing the Continue or Next is a duplication breakpoints, my friends came up to 30,000 breakpoints, the application freezes and we do:
$ echo -n > ~/.config/pudb/saved-breakpoints

Now I have fixed this place, I hope it will help many!

Andreas Klöckner inducer merged commit 63f1e63 into from June 16, 2012
Andreas Klöckner inducer closed this June 16, 2012
Andreas Klöckner
Owner

Thanks!

Mikhail Andreev
adw0rd commented June 16, 2012

Not at all, you make a good product!
http://adw0rd.ru/2012/python-django-pudb/

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

Showing 1 unique commit by 1 author.

Jun 16, 2012
Mikhail Andreev Fixed a writer the duplicate breakpoints when working with Django 7808883
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  pudb/settings.py
3  pudb/settings.py
@@ -400,8 +400,9 @@ def save_breakpoints(bp_list):
400 400
     from os.path import join
401 401
     bp_histfile = join(get_save_config_path(), "saved-breakpoints")
402 402
     histfile = open(bp_histfile, 'w')
  403
+    bp_list = set([(bp.file, bp.line) for bp in bp_list])
403 404
     for bp in bp_list:
404  
-        histfile.write("b %s:%d\n"%(bp.file, bp.line))
  405
+        histfile.write("b %s:%d\n" % (bp[0], bp[1]))
405 406
     histfile.close()
406 407
 
407 408
 # }}}
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.