Changes between Version 2 and Version 3 of WaveformDeveloperGuide
- Timestamp:
- 02/13/10 21:07:12 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WaveformDeveloperGuide
v2 v3 51 51 [[BR]] 52 52 53 == Debugging Waveforms with Eclipse (or gdb)==53 == Debugging Waveforms == 54 54 55 Once your ALOE is running, and just after loading the application, you can attach to the running process using your favourite debugger (gdb, ddd, eclipse, etc.). The following steps lead youto debug a waveform component:55 Once your ALOE is running, and just after loading the application, you can attach to the running process using your favourite debugger (gdb, ddd, eclipse, etc.). The following steps explain how to debug a waveform component: 56 56 57 1. Launch ALOE with a positive debug level (this will prevent the components to be killed when stopped by the debugger:57 1. Launch ALOE with the debug option argument. This will prevent the components to be killed when stopped by the debugger: 58 58 59 59 {{{ … … 67 67 }}} 68 68 69 3. Create or open an Eclipse project for your component.69 3. Open your debugger and attach to the component process. 70 70 71 4. Place a break-point on every component you want to debug, in the INIT or in the RUN phase 72 73 5. Right-click in the binary (left-frame, "Project Explorer") and select debug 74 75 6. Select the first item of the left (Attach to Process) and click the ''New'' icon of the icon's menu. Click ''Debug''. 76 77 7. Back to the runph prompt, type: 71 4. Back to the runph prompt, type: 78 72 79 73 {{{ … … 81 75 }}} 82 76 83 8. If you placed a breakpoint in the initialization phase, you will see how the program stops on it. You can continue the execution (step by step or free running) until the component arrives to the Status() call. At that point, you can begin to debug the RUN phase. We recommended using step-by-step execution, soyou can place a breakpoint anywhere in the RUN piece of code and you will see how the program stops on every timeslot. In the runph prompt type:77 5. If you placed a breakpoint in the initialization phase, you will see how the program stops on it. You can continue the execution (step by step or free running) until the component arrives to the Status() call. At that point, you can begin to debug the RUN phase. We recommended using phstep execution, because you can place a breakpoint anywhere in the RUN piece of code and you will see how the program stops on every timeslot. In the runph prompt type: 84 78 85 79 {{{ … … 87 81 }}} 88 82 89 9. Leave the component in free-run (in Eclipse), it will fall to idle, until the next step, so, go back to runph prompt and type ''phstep'' again. Remember that you also have the option to remove breakpoints and run a finite number of steps, you can do so by typing, in the runph prompt:83 6. Leave the component in free-run, it will fall to idle, until the next step, so, go back to runph prompt and type ''phstep'' again. Remember that you also have the option to remove breakpoints and run a finite number of steps, you can do so by typing, in the runph prompt: 90 84 91 85 {{{