通过Eclipse调试Pylons应用程序 [英] Debug Pylons application through Eclipse

查看:106
本文介绍了通过Eclipse调试Pylons应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有使用PyDev的Eclipse设置,并且可以调试我的脚本/应用程序。我刚刚开始与Pylons一起玩,想知道是否有办法通过Eclipse启动贴纸服务器,所以我可以调试我的webapp?

解决方案

创建新的启动配置(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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆