dbgprobe.connect
Establish a debug probe connection to halt the target and obtain a session ID for subsequent debugging operations.
Instructions
Establish a debug probe session. Returns a session_id and the resolved configuration (backend, executable paths, defaults applied). The target is halted after connecting — this is inherent to the debug probe connection. Use dbgprobe.go to resume execution if needed. For symbol-aware debugging, attach an ELF file with dbgprobe.elf.attach after connecting — this enables breakpoints by function name and address-to-symbol resolution in status/step/halt responses. For register-level peripheral access, attach an SVD file with dbgprobe.svd.attach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Target device string (e.g. nRF52840_xxAA). This is the TARGET chip on the board, not the debug probe MCU. The probe name (e.g. OB-nRF5340) refers to the debugger, not the target. Overrides DBGPROBE_JLINK_DEVICE. | |
| backend | No | Backend to use (default from DBGPROBE_BACKEND env var). | |
| probe_id | No | Serial number of the probe to connect to. | |
| interface | No | Debug interface (default from DBGPROBE_INTERFACE, typically SWD). | |
| speed_khz | No | Interface speed in kHz (default from DBGPROBE_SPEED_KHZ, typically 4000). |