Debugging UDFs
auxlab2 now includes a dedicated UDF Debug Window for editing and stepping through loaded UDF files.
Opening The Debug Window
Current menu entries include:
File > Open UDF...File > Close UDFView > Show Debug WindowView > Focus Debug Window
When a UDF file is opened, the debug window can load that file, show its current breakpoints, and keep it available for stepping.
Breakpoints
The current app supports breakpoint toggling from both the menu and the debug window.
Available control:
Debug > Toggle Breakpoint- shortcut:
F9
In the debug window, pressing F9 toggles the breakpoint on the current cursor line.
Stepping Controls
The current debug actions are:
ContinuewithF5Step OverwithF10Step InwithF11Step OutwithShift+F11AbortwithShift+F5
These actions are available from the Debug menu and from buttons in the debug window itself.
What The Window Shows
The current UDF Debug Window includes:
- a status line such as
Debug state: paused - a location line
- editable tabs for loaded
.auxfiles - save and save-all actions
- highlighted pause location
- highlighted breakpoint lines
When execution pauses, the app moves the editor cursor to the paused line and centers the view there.
Typical Workflow
- Open a
.auxfile withFile > Open UDF.... - Show the debug window.
- Put the cursor on a line and press
F9to set a breakpoint. - Run the UDF from AUXLAB.
- When execution pauses, use
F10,F11,Shift+F11, orF5to continue stepping. - Save edits directly in the debug window if needed.
Notes
- Breakpoints are registered against the current UDF name and line number.
- If the file changes on disk,
auxlab2can reload it and refresh the debug view. - The current implementation is specifically centered on UDF debugging rather than a general-purpose debugger for every execution context.
Current source basis:
auxlab2/src/MainWindow.cppauxlab2/src/UdfDebugWindow.hauxlab2/src/UdfDebugWindow.cppauxlab2/src/AuxEngineFacade.cppaux_engine/include/auxe/auxe.h