PyCharm: Debugging Javascript in Django Template

I can't figure out how to debug javascript using PyCharm in a Django template.

When I try to debug a template - using the Debug context menu item in a template - the debugger starts in chrome and I see the following error in the PyCharm debugger console:

GET http://localhost:8000/login net::ERR_CONNECTION_REFUSED

      

Nothing is visible in the chrome window.

I have seen prompts that I should "open the generated file" from the scripts tab of the PyCharm debugger. But since chrome doesn't load anything, nothing opens there.

I have the JetBrains chromate debugger installed and as far as I can tell is working.

What is the javascript debugging procedure in the Django template from PyCharm?

+3


source to share


1 answer


Why not use a browser tool like firebug in the browser or Google Chome debugging tools (depending on the browser you are using) If your code is client side, since I am assuming the application server side is written in Python scripts, this is the simplest solution. I also used JSDT in eclipse, but it was not that convenient.



For the error you posted I think it is a server / network side error, check your views.py or example from the django tutorial to see if it is present in WSGI (default django web server).

0


source







All Articles