S
S
Salavat Sharapov2015-02-26 20:45:58
Django
Salavat Sharapov, 2015-02-26 20:45:58

Why doesn't Breakpoint fire in PyCharm 3.1?

There is a method like this:

(2)def text_clean(self):
        (1)text = self.cleaned_data.get('text', False)
        if text == foo.bar:
               raise forms.ValidationError()
        else:
              return self.cleaned_data['text']

When setting a breakpoint in the body of a method (for example, point 1), none of them work. And if you put it at point 2, it works before calling the method.
In other classes and methods it works fine.
What could be the reason.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Salavat Sharapov, 2015-02-26
@desperadik

clean_text СL
|yka!

X
xSkyFoXx, 2015-02-27
@xSkyFoXx

Most likely due to the fact that you are running the project in "Run" mode, and not "Debug". I myself sometimes miss the button))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question