java_debugger
Inspect Java runtime state by setting breakpoints, watching exceptions, and reading stacks and variables, then resume or clean up suspensions.
Instructions
Observe executed paths and runtime state with breakpoints, exception events, stacks, and variables. Always resume or clean up every suspension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Debug connection host; localhost only. | 127.0.0.1 |
| line | No | Source line for breakpoint set/removal. | |
| action | Yes | Runtime operation to perform. | |
| caught | No | Watch caught exceptions. | |
| timeout | No | Seconds to wait for an event. | |
| uncaught | No | Watch uncaught exceptions. | |
| bp_action | No | Breakpoint operation. | set |
| jdwp_port | No | Local Java debug port for launch or attach. | |
| wait_mode | No | blocking waits directly; with http_trigger it performs arm, trigger, and await in one call. Use arm then await with its wait_handle when an external action is needed after event waiting is armed. Resume every suspension. | blocking |
| item_limit | No | Maximum list/set/array items. | |
| max_frames | No | Maximum stack frames. | |
| request_id | No | Exception-watch identifier returned by set/list. | |
| frame_index | No | Frame index for variables. | |
| thread_name | No | Optional fallback selector for stack/variables. Omit it to use the active suspension's event-hit thread. Exact names are preferred; otherwise a unique prefix or substring must identify one JVM thread. The selected thread must be suspended for stack/variables to succeed. | |
| wait_handle | No | Active observation handle returned by arm or a nonterminal blocking result. | |
| http_trigger | No | Optional loopback request started only after event waiting is armed. Use with blocking for one-call arm/trigger/await, or with arm when work must occur before a later await. It is rejected while configured application readiness is starting; unverified readiness is allowed with a warning. Never send the same request again. | |
| include_this | No | Include this in variables. | |
| breakpoint_id | No | Breakpoint identifier returned by set/list. | |
| class_pattern | No | Class name/pattern for breakpoint set or removal. | |
| include_proxy | No | Allow proxy classes in breakpoint matching. | |
| suspension_id | No | Active suspension id returned by wait_event/status. Pass it to stack, variables, and resume so stale observations are rejected; stack/variables use its event-hit thread when thread_name is omitted. | |
| exception_class | No | Exception class in Java name, JVM path, or signature form. | |
| map_entry_limit | No | Maximum map entries. | |
| max_value_depth | No | Object expansion depth. | |
| exception_action | No | Exception-watch operation. | set |
| include_generated | No | Allow generated classes in breakpoint matching. | |
| allow_broad_caught | No | Allow noisy broad caught-exception watches. | |
| semantic_collections | No | Render supported Java collections logically. |