[英]How to debug javascript in Eclipse served by a Django Server
Let me 1st explain my setup. 首先让我解释一下我的设置。 I am trying to build a website using Django as backend framework and with Twitter bootstrap as frontend framework (using the django frontend ) 我正在尝试使用Django作为后端框架并使用Twitter bootstrap作为前端框架(使用django frontend )建立一个网站
My env is CentOS 5.9 with Eclipse Kepler with Pydev, JSDT, WDT plugins (Python 2.7, Django 1.4+). 我的环境是带有Eclipse Kepler和Pydev,JSDT,WDT插件(Python 2.7,Django 1.4+)的CentOS 5.9。
I am able to debug Django Python files (views.py) using --noreload (argument to manage.py) using the pydev perspective. 我可以使用pydev透视图使用--noreload(manage.py参数)来调试Django Python文件(views.py)。
But how do I debug the frontend Javascript from Eclipse (I know I can use Chrome/Firefox tools, but I would like to debug and use JS autocomplete feature of Eclipse ) that is served from a Django server? 但是,如何从Django服务器提供服务的Eclipse中调试前端Javascript(我知道我可以使用Chrome / Firefox工具,但我想调试和使用Eclipse的JS自动完成功能 )? To make things simple, I am running the Django manage.py from a terminal (unless someone can tell me how to debug Django and JS at same time from Eclipse?) 为简单起见,我在终端上运行Django manage.py(除非有人可以告诉我如何从Eclipse同时调试Django和JS?)
I know I can debug static pages using chrome dev tool with Eclipse , but I am looking for way to debug pages (JS, CSS) served by Django. 我知道我可以使用带有Eclipse的chrome dev工具调试静态页面,但是我正在寻找调试Django服务的页面(JS,CSS)的方法。
Thanks for the help :) Let me know if you think there is a better way to debug JS. 感谢您的帮助:)如果您认为有更好的方法调试JS,请告诉我。
localhost
在localhost
上启动服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.