海上月明

          editer by sun
          posts - 162, comments - 51, trackbacks - 0, articles - 8
             :: 首頁 :: 新隨筆 ::  :: 聚合  :: 管理

          Debugging django with PyScripter

          Posted on 2008-04-01 20:20 pts 閱讀(774) 評論(0)  編輯  收藏 所屬分類: Python
          pyscripter - Debugging django with PyScripter
          Here is how you can debug Django applications with Pyscripter in six simple steps:

          1. In the File explorer locate the root directory of your Django application. You may want to right click on the directory name and select File Explorer, Explore here.
          定位到創建的Django 應用目錄

          2. Open the project files in Pyscripter (e.g., models,py, views.py etc.) and set whatever breakpoints you want.
          打開要添加斷點的文件

          3. Select Run, Command Line Parameters... and set the command line to "runserver --noreload". Also check the "Use Command line" checkbox.
          選擇 Run,輸入命令:runserver --noreload,勾選中"Use Command line"

          4. Make sure the remote engine is selected (Run, Python Engine, Remote).

          5. Open the manage.py file and press the debug button (or press F9).

          6. Start a web browser and test your application. Pyscripter should now stop at whatever breakpoints you have set and you can use the various debugging facilities (call stack, variables, interpreter prompt etc.)

          To stop debugging, right-click on the interpreter window and select "Reinitialize Interpreter", then go to the browser and reload the document.
          主站蜘蛛池模板: 新巴尔虎右旗| 斗六市| 保定市| 定日县| 新邵县| 横峰县| 天峻县| 云阳县| 道孚县| 繁峙县| 阿尔山市| 米易县| 屏山县| 文山县| 黑水县| 得荣县| 西吉县| 安顺市| 桂平市| 蕉岭县| 临邑县| 讷河市| 文安县| 兴安盟| 镇安县| 凤阳县| 伊春市| 普安县| 泗洪县| 永胜县| 抚顺县| 祁东县| 宁晋县| 宜春市| 明星| 兖州市| 玉林市| 芷江| 滨海县| 龙海市| 建湖县|