Difference between revisions of "Documentation/DevGuide/Basic/Basic Source Editor and Debugger"
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
|||
Line 10: | Line 10: | ||
The Basic editor and debugger of the IDE window is shown when the user edits a Sub or Function from the '''Tools - Macros - Organize Macros - {{PRODUCTNAME}}''' Basic dialog. In this mode, the window contains the actual editor main window, debugger Watch window to display variable values and the debugger Calls window to display the Basic call stack. The Watch and Calls windows are only used when a Basic program is running and halted by the debugger. | The Basic editor and debugger of the IDE window is shown when the user edits a Sub or Function from the '''Tools - Macros - Organize Macros - {{PRODUCTNAME}}''' Basic dialog. In this mode, the window contains the actual editor main window, debugger Watch window to display variable values and the debugger Calls window to display the Basic call stack. The Watch and Calls windows are only used when a Basic program is running and halted by the debugger. | ||
− | The editor supports common editor features. Since the editor is only used for the {{ | + | The editor supports common editor features. Since the editor is only used for the {{AOo}} Basic programming language, it supports a Basic syntax specific highlighting and F1 help for Basic keywords. |
[[Image:BasicEditor_Running.png|none|thumb|400px|Basic Editor and Debugger]] | [[Image:BasicEditor_Running.png|none|thumb|400px|Basic Editor and Debugger]] | ||
Line 36: | Line 36: | ||
|- | |- | ||
|[[Image:Breakpoint.png]] | |[[Image:Breakpoint.png]] | ||
− | |'''Breakpoint''': Toggles a breakpoint at the current cursor line in the Basic editor. If a breakpoint can not be set at this line a beep warns the user and the action is ignored (key command '''F9'''). A breakpoint is displayed as a red dot in the left column of the editor window. | + | |'''Breakpoint''': Toggles a breakpoint at the current cursor line in the Basic editor. If a breakpoint can not be set at this line a beep warns the user and the action is ignored (key command {{key|'''F9'''}}). A breakpoint is displayed as a red dot in the left column of the editor window. |
|- | |- | ||
|[[Image:AddWatch.png]] | |[[Image:AddWatch.png]] | ||
Line 45: | Line 45: | ||
|- | |- | ||
|[[Image:Macros.png]] | |[[Image:Macros.png]] | ||
− | |'''Macros''': Opens the ''' | + | |'''Macros''': Opens the '''OpenOffice Basic Macros''' dialog. |
|- | |- | ||
|[[Image:Modules.png]] | |[[Image:Modules.png]] | ||
− | |'''Modules''': Opens the ''' | + | |'''Modules''': Opens the '''OpenOffice Basic Macro Organizer''' dialog |
|- | |- | ||
|[[Image:FindParentheses.png]] | |[[Image:FindParentheses.png]] |
Revision as of 20:19, 20 December 2020
- Basic Source Editor and Debugger
- Dialog Editor
The Basic editor and debugger of the IDE window is shown when the user edits a Sub or Function from the Tools - Macros - Organize Macros - OpenOffice.org Basic dialog. In this mode, the window contains the actual editor main window, debugger Watch window to display variable values and the debugger Calls window to display the Basic call stack. The Watch and Calls windows are only used when a Basic program is running and halted by the debugger.
The editor supports common editor features. Since the editor is only used for the Apache OpenOffice Basic programming language, it supports a Basic syntax specific highlighting and F1 help for Basic keywords.
The following list explains the functionality of the macro toolbar buttons.
Illustration 12.24: Basic Editor and Debugger shows how the IDE window looks while a Basic program is executed in debugging mode.
- The Stop button is enabled.
- A breakpoint is set in line 11.
- The execution is halted in line 12. The current position is marked by a yellow arrow.
- The Watch window contains the entries Value and Hello, and displays the current values of these variables. Values of variables can also be evaluated by touching a corresponding identifier in the source code with the cursor.
- The Calls window shows the stack. The currently executed Sub doIt is displayed at the top and the Sub Main at the second position.
Content on this page is licensed under the Public Documentation License (PDL). |