R
R
rusianvodka2015-03-04 12:58:39
Python
rusianvodka, 2015-03-04 12:58:39

Pycharm not working Breakpoint how to win?

Good afternoon,
I set out to get the structure of js code using pyesprima on python in pycharm.
esprima.org/index.html - the main lib for the analysis used
https://pypi.python.org/pypi/pyesprima/0.1.1 - a converted lib for python.
The problem is the following.

1. import pyesprima
2. js_pars_file = pyesprima.parse(open("js_source.js", 'r').read())
3. count = len(js_pars_file["body"])-1
4. for x in xrange(0, count):
5.     if js_pars_file["body"][x]["type"] == "FunctionDeclaration":
6.         print js_pars_file["body"][x]["id"]["name"]

After the second line, Breakpoints don't work.
That is, if I step by step reach the second line, then after, no matter how hard I try, for some reason he does not want to pay attention to more than one point, which I indicated after js_pars_file.
What could be the problem? At the same time, prints display all the information.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dronnn16, 2015-05-06
@Dronnn16

Dude, same problem. At first everything worked, but suddenly it stopped, it seems, when I created a new project. Did you find the answer?
UPD:
It seems that this is the case:
http://ru.stackoverflow.com/questions/410216/No-ra... The
exclusion of Russian letters from the directory helped me. If you figure out how to set up debugging, keeping Russian letters in the directory, please unsubscribe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question