Debugging with Flask and Javascript
Answered
I have a python / Flask project and have started to use Pycharm Professional edition as I want to start using Javascript as well. However, I am having issue debugging the javascript code. I can pull up the debugger for the .html file that contains javascript as well, but then the webpage does not render fully so I can't enter values into the fields to run through the code. If I start with the the app.py, then I don't seem to be able to have any of the console.log statements be executed. How do I both run the Flask app and debug javascript at the same time?
Please sign in to leave a comment.
Have you tried this approach? https://ishan-mehta17.medium.com/debug-javascript-in-python-flask-app-using-pycharm-ide-11b3a44bc5e0
I had tried that earlier but couldn't get it to work as expected. I tried it again now though and it is working well, so I must have had a configuration error the first time I set it up. Thanks for the help.