OxL Справочник OxL
РусскийEnglish

cmd oxl dap

oxl dap [--listen [host:]port [--once]]

debug adapter (DAP over stdin/stdout or TCP, proxy over lldb-dap); OxL exception filters, data and instruction breakpoints

Флаги

oxl dap --help
usage: oxl dap [--lldb-dap <path>] [--no-formatters] [--no-tasks] [--listen [host:]port [--once]]

Debug Adapter Protocol server, a proxy over lldb-dap (OXL_LLDB_DAP, lldb-dap-18, lldb-dap). Without --listen it speaks DAP on
stdin/stdout; with --listen it serves DAP sessions over TCP one after another (like `dlv dap --listen`), host default 127.0.0.1,
port 0 = pick a free port; the line `listening on <host:port>` goes to stderr. --once: exit after the first session.
DAP has no authentication: a non-loopback address is a warning, use an SSH tunnel for remote machines.
`launch` accepts `program` = an .oxl file, a package directory (built with debug info first) or an executable, plus
`oxlProfile` (default dev) and `oxlFormatters` (false: no pretty-printers). `attach` takes `pid`. Beyond lldb-dap: the exception
filters oxl-panic, oxl-uncaught-panic, oxl-assert, oxl-error; data breakpoints; instruction breakpoints; the custom request
`oxlTasks` (docs/ide-protocol.md, docs/debugger.md).

Коды завершения

0 success, 1 program error or failed tests, 2 bad arguments, 3 compilation error, 78 configuration error

См. также