Answer the question
In order to leave comments, you need to log in
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"]
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question