Changes between Version 47 and Version 48 of DeveloperGuidelines/Eclipse
- Timestamp:
- 11/11/11 20:06:39 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Eclipse
v47 v48 57 57 (This is where you will need to select web2py before trying Run or Debug to avoid the empty $project_loc error.) 58 58 i. Drag the Expressions, Console, Tasks tabs to the upper right, where the Variables tab is. Drag PyDev Package Explorer to the upper left where Debug is. (This leaves more space for the editor view.) 59 i. Window > Customize Perspective > Go through the tabs anduntick !PyDev Debug. Click OK59 i. Window > Customize Perspective > Tool bar visibility > untick !PyDev Debug. Click OK 60 60 i. Set your default HTML editor 61 1. From the Window menu, choose Preferences 62 1. Under General section on the left 63 1. Open the Editors section 64 1. Choose File Associations 65 1. Highlight .htm 66 1. Click "Add..." 61 1. Window > Preferences > General > Editors > File Associations 62 1. Click .htm 63 1. In the Associated editors section below, click "Add..." 67 64 1. Choose "Text Editor" 68 65 1. Click OK 66 1. Text Editor will be added to the editors list. If not selected, click it. 67 1. Click Default. 69 68 1. Repeat the process with .html 70 69 1. Click OK … … 78 77 79 78 == Debugging with Eclipse == 80 * Set and remove breakpoints by double clicking in the margin of the code file 81 * Click the 'Debug Sahana Eden' button79 * Set and remove breakpoints by double clicking in the margin of the code file. 80 * To start running with the debugger: In the toolbar below the main Eclipse menu bar, find the bug icon and click the down-arrow next to it. Click the option that has a "P" superscript. After this, you can just click the bug. (If you get an error that indicates Eclipse tried to run unittests instead, go through the down-arrow menu again.) 82 81 83 82 * F5 Step into functions 84 83 * F6 Step over lines 85 84 * F7 Step out of functions 86 * Use expressions (drag and drop from code) or right-click > watch 85 * Use expressions (drag and drop from code) or right-click > watch 86 * Examine values of variables in the Variables tab. 87 87 88 88 === Accessing private data ===