Debug Pylons application through Eclipse

后端 未结 7 1962
[愿得一人]
[愿得一人] 2020-12-24 09:22

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

7条回答
  •  一向
    一向 (楼主)
    2020-12-24 09:51

    I also got this working (finally). I used buildout instead of virtualenv to install pylons (instructions at: http://wiki.pylonshq.com/display/pylonscommunity/Howto+install+Pylons+with+buildout), so the instructions above needed to be changed a little as far as the paths go.

    -for "Main Module", I use:

    ${workspace_loc:myeclipseprojectname/bin/paster}
    

    (adding --reload made breakpoints not work for me, and I tested this a couple times)

    -for "Program Arguments", I use:

    serve ${workspace_loc:myeclipseprojectname/mypylonsprojectname/development.ini}
    

    -for "Working Directory, Other:", I use:

    ${workspace_loc:myeclipseprojectname/mypylonsprojectname}
    

    -as mentioned above, in "Common Tab", "Check allocate console and launch in background"

    -and remember to set a breakpoint before trying.

提交回复
热议问题