通过Eclipse调试Pylons应用程序 [英] Debug Pylons application through Eclipse
问题描述
创建新的启动配置(Python运行)
主选项卡
使用paster-script.py作为主模块(您可以在python安装目录的Scripts子目录中找到它)
不要忘记在PYTHONPATH区域中添加应用程序的根文件夹
参数
也将基本目录设置为根文件夹。 / p>
由于程序参数使用serve development.ini(或用于调试应用程序的任何内容)
常用选项卡
检查分配控制台并在后台启动
I have Eclipse setup with PyDev and love being able to debug my scripts/apps. I've just started playing around with Pylons and was wondering if there is a way to start up the paster server through Eclipse so I can debug my webapp?
Create a new launch configuration (Python Run)
Main tab
Use paster-script.py as main module (you can find it in the Scripts sub-directory in your python installation directory)
Don't forget to add the root folder of your application in the PYTHONPATH zone
Arguments Set the base directory to the root folder also.
As Program Arguments use "serve development.ini" (or whatever you use to debug your app")
Common Tab
Check allocate console and launch in background
这篇关于通过Eclipse调试Pylons应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!