Setting a Breakpoint at Module Entry
To add a breakpoint to intercept the module initialization event, follow the steps below:
IMPORTANT
: You can only add four breakpoints for module entries due to hardware breakpoint limitations.- Load necessary modules.For instructions, see Loading Debug Information or Debugging UEFI BIOS (for loading PEI or DXE modules).
- Halt the target and select the desired thread in the Debug view.
- Open the Modules view and check if all modules for the selected debug contexts are loaded successfully.
- Right-click the desired module and select.
- Open the Breakpoints view and check the newly added
- Resume the target and wait until the breakpoint is hit. You can check the break location in theSourceview.
NOTE
: The debugger might break in the ModuleEntryPoint
function, which is one or more steps before the module main function. To jump to the proper function, use 