diff --git a/README.md b/README.md
index 6566cbc88..b073cd963 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ If your agent runs in a terminal, a pipeline, or a cloud sandbox — or needs to
- 🧪 **Mock adapter for testing** – Test without external dependencies
- 🛰️ **Out-of-IDE & remote attach** – Attach over host/port to a process on another machine or inside a container (Python via debugpy, Ruby via rdbg, JavaScript via the V8 inspector, Java via JDWP, Dart/Flutter via the VM-service URI) with source-path mapping, or by PID for native code (C/C++, COBOL) and for a local Node.js process (JavaScript), whose inspector mcp-debugger opens for you and, until [#1261](https://github.com/debugmcp/mcp-debugger/issues/1261) is fixed, leaves open after you detach. Python and Ruby attach *direct-connect* — the debug engine already runs inside the target, so no local Python or Ruby is needed; JavaScript, Java, .NET, C/C++, COBOL and Dart/Flutter spawn a local adapter instead; of those, only Java (a JDK), .NET (netcoredbg) and Dart/Flutter (the Dart or Flutter SDK, whose own debug adapter does the work) need a toolchain you install, since the JavaScript, C/C++ and COBOL debug engines ship with the package. `list_supported_languages` reports per-mode availability with reasons
- 🎯 **Breakpoints that survive edits** – Address by content (`statement: "total = sum(prices)"`), by symbol (`function: "main"`), or assert line content with `expectedContent`; anchors re-resolve across `restart_debugging` and weak matches warn loudly
-- 🪵 **Logpoints** – `set_breakpoint` with `logMessage: "x={x}"` streams interpolated values into `get_output` without pausing the program. They are not free, and on a live service there are three costs to know first ([details and measurements](docs/tool-reference.md#logpoints)): **an attached debugger and, for Python, JavaScript and Dart, an open debug port** (a debugger stays attached for as long as you watch; a running Python, JavaScript or Dart process is reached through a debug port on it; and attaching to a Node.js process by PID opens its inspector, on `127.0.0.1:9229` by default, and leaves it listening, unauthenticated, after you detach: [#1261](https://github.com/debugmcp/mcp-debugger/issues/1261)); **time per hit** (about 25 µs in Python to about 5 ms in Dart); and **a slower function** (JavaScript and Dart de-optimize any function that holds a line breakpoint or a logpoint, and Python traces its every line, so the whole function runs slower while the logpoint is set: 1.7× in Dart, 2.6× in JavaScript and 58× in Python in the reference's table)
+- 🪵 **Logpoints** – `set_breakpoint` with `logMessage: "x={x}"` streams interpolated values into `get_output` without pausing the program. They are not free, and on a live service there are three costs to know first ([details and measurements](docs/tool-reference.md#logpoints)): **an attached debugger and, for Python, JavaScript and Dart, an open debug port** (a debugger stays attached for as long as you watch; a running Python, JavaScript or Dart process is reached through a debug port on it; and attaching to a Node.js process by PID opens its inspector, on `127.0.0.1:9229` by default, and leaves it listening, unauthenticated, after you detach: [#1261](https://github.com/debugmcp/mcp-debugger/issues/1261)); **time per hit** (about 12 µs in Python to about 5 ms in Dart); and **a slower function** (JavaScript and Dart de-optimize any function that holds a line breakpoint or a logpoint, and Python traces its every line, so the whole function runs slower while the logpoint is set: 1.7× in Dart, 2.6× in JavaScript and 56× in Python in the reference's table)
- 🧰 **Full breakpoint lifecycle** – `list_breakpoints` / `remove_breakpoint` / `clear_breakpoints` work live mid-run; `restart_debugging` relaunches with the same config and re-applies everything in one call
- 📡 **Buffered program output** – `get_output` returns debuggee stdout/stderr with a cursor, and each session exposes its transcript as a subscribable MCP resource
- 💥 **Crash-state debugging by default** – Launch sessions pause on uncaught exceptions with stack and locals live (`breakOnExceptions`; exception class/message surfaced via `lastStop`)
diff --git a/changelog.d/1261-logpoint-costs.fixed.md b/changelog.d/1261-logpoint-costs.fixed.md
index e29cb0265..0017f0fc3 100644
--- a/changelog.d/1261-logpoint-costs.fixed.md
+++ b/changelog.d/1261-logpoint-costs.fixed.md
@@ -1 +1 @@
-**The docs state the three known costs of a logpoint** — the README still called logpoints "prod-safe value watching on hot paths". It now names three costs, and the tool reference explains each. A debugger stays attached for as long as you watch, which for a running Python, JavaScript or Dart process means an open debug port, and an attach to a Node.js process by PID leaves the inspector it opened (`127.0.0.1:9229` by default) listening, unauthenticated, after detach and close (#1261); the JavaScript guide, the debugging skill and the server's workflow prompt no longer present that only as a convenience. Each hit costs time. And in Python, JavaScript and Dart a function that holds a line breakpoint of any kind runs slower as a whole while it holds it: V8 and the Dart VM stop optimizing it, and debugpy traces its every line. Newly measured for JavaScript and Python, attached by port: the function is back at its time without the logpoint by the second recorded call after the logpoint is removed or the debugger detaches, and a hit cost about the same (JavaScript) or less (Python) than in launch mode (#1218, #1261)
+**The docs state the three known costs of a logpoint** — the README still called logpoints "prod-safe value watching on hot paths". It now names three costs, and the tool reference explains each. A debugger stays attached for as long as you watch, which for a running Python, JavaScript or Dart process means an open debug port, and an attach to a Node.js process by PID leaves the inspector it opened (`127.0.0.1:9229` by default) listening, unauthenticated, after detach and close (#1261); the JavaScript guide, the debugging skill and the server's workflow prompt no longer present that only as a convenience. Each hit costs time. And in Python, JavaScript and Dart a function that holds a line breakpoint of any kind runs slower as a whole while it holds it: V8 and the Dart VM stop optimizing it, and debugpy traces its every line. Newly measured for JavaScript and Python, attached by port: the function is back at its time without the logpoint by the second recorded call after the logpoint is removed or the debugger detaches, and a hit cost about the same (JavaScript) or less (Python, measured while a launched Python program still ran with debugpy's debug log on: see #1264) than in launch mode (#1218, #1261)
diff --git a/changelog.d/1264.fixed.md b/changelog.d/1264.fixed.md
new file mode 100644
index 000000000..6ff9bef24
--- /dev/null
+++ b/changelog.d/1264.fixed.md
@@ -0,0 +1 @@
+**A launched Python program no longer runs with debugpy's debug log on** — the adapter started debugpy with `DEBUGPY_LOG_DIR` set to the session's log directory for every launch, and debugpy then turns its debug log on inside the debugged program as well: pydevd writes a line for every message it sends, on the program's own threads. Measured on one machine, that log was more than half the cost of a logpoint hit (26.1 µs with it, 11.7 µs without), and it made a freeze far more likely when two threads reach breakpoints together (#1384: 6 freezes in 600 rounds with the log on, none in 600 with it off). The adapter no longer sets the variable, and the policy's fallback spawn no longer passes `--log-dir`. To get debugpy's logs, set `DEBUGPY_LOG_DIR` in the server's environment: it passes through. Attach is unchanged: an attached program logs the way it was started. The docs and the `set_breakpoint` description carry the new figures (#1264, #1384)
diff --git a/docs/python/README.md b/docs/python/README.md
index 90b6a117b..debe75a6a 100644
--- a/docs/python/README.md
+++ b/docs/python/README.md
@@ -63,7 +63,7 @@ set_breakpoint { "sessionId": "...", "file": "/abs/path/script.py", "line": 15,
set_breakpoint { "sessionId": "...", "file": "/abs/path/script.py", "line": 15, "logMessage": "x={x} y={y}" }
```
-A logpoint never pauses: it interpolates the `{expressions}` and writes the line to `get_output` while the program keeps running. Each hit does cost time, however — measured at 24.7 µs per hit on Python 3.13 + debugpy (`sys.monitoring`, 2.5% of a core at 1,000 hits/s), and placing a logpoint anywhere in a function slows that whole function by 58× — so keep logpoints off tight loops. When hits outrun debugpy's delivery rate (measured at 3,200–4,400 lines/s during a run and about 6,000 lines/s draining afterward), lines still queued when the program exits are lost and the session's end answer does not report the loss (issue #1265). See [Logpoints](../tool-reference.md#logpoints) for measurement conditions and what was not measured.
+A logpoint never pauses: it interpolates the `{expressions}` and writes the line to `get_output` while the program keeps running. Each hit does cost time, however — measured at 11.7 µs per hit on Python 3.13 + debugpy (`sys.monitoring`, 1.2% of a core at 1,000 hits/s), and placing a logpoint anywhere in a function slows that whole function by 56× — so keep logpoints off tight loops. When hits outrun debugpy's delivery rate (a few thousand lines a second), lines still queued when the program exits are lost and the session's end answer does not report the loss (issue #1265). See [Logpoints](../tool-reference.md#logpoints) for measurement conditions and what was not measured.
#### What a logpoint message may contain
@@ -298,7 +298,7 @@ Variable values, captured output, and evaluate results are scanned for credentia
### Logpoint lines lost at program exit
-When a Python logpoint fires faster than debugpy delivers messages (measured at 3,200–4,400 lines/s during a run and about 6,000 lines/s while draining after a loop), lines still queued in the debuggee when the program exits are dropped. The session's end answer reports a normal exit with no indication that lines were lost (issue #1265). See [Logpoints](../tool-reference.md#logpoints) for the full measurement.
+When a Python logpoint fires faster than debugpy delivers messages (a few thousand lines a second), lines still queued in the debuggee when the program exits are dropped. The session's end answer reports a normal exit with no indication that lines were lost (issue #1265). See [Logpoints](../tool-reference.md#logpoints) for the full measurement.
### Steps lost during exception unwinding (Python 3.12+)
@@ -321,3 +321,4 @@ The launch passes `dapLaunchArgs.env` through the Python adapter to debugpy. mcp
4. The stack trace shows the call hierarchy that led to the current position
5. Expressions are evaluated against the current paused debug context (current frame when available), with the evaluation context defaulting to `'variables'` — reads and arithmetic are reliable, but verify a mutation such as `x = 5` with a follow-up evaluate before relying on it
6. Child processes are debug sessions by default: debugpy's sub-process debugging is on (the last step of [#1081](https://github.com/debugmcp/mcp-debugger/issues/1081)), so every Python child the program starts (`subprocess`, `multiprocessing`, pytest-xdist workers, an autoreloader, a script that shells out to Python) becomes a child debug session of its own: `list_debug_sessions` lists it with `parentSessionId` naming this session, it stops on the breakpoints set on this session before launch (re-sent to it before it runs), and it has its own `get_output` and `close_debug_session`; closing the parent closes its children first. A `wait_for_stop` on this session is a wait on the tree: it reports a child's stop with `sessionId` naming the child (inspect, step and continue with that id) and `children` listing every child session with its state; a child can still be waited on by its own id. Each child parks until it is adopted (about 110 ms from report to its first stop), is a session row, and counts against `DEBUG_MCP_MAX_CHILD_SESSIONS` (default 32 live children per tree; beyond it a child is released and runs undebugged). Opt out per launch with `dapLaunchArgs: { subProcess: false }` (the children run undebugged and the launch answer's warning says so), per attach target with `python -m debugpy --listen … --configure-subProcess false` (or `debugpy.configure(subProcess=False)` in code — the attach request's `subProcess` is inert), or server-wide with `DEBUG_MCP_MAX_CHILD_SESSIONS=0`. The design is [the session tree](../architecture/session-tree.md), built on the handshake measured in [spike-notes-subprocess.md](spike-notes-subprocess.md)
+7. debugpy's own logs (`debugpy.*.log`) are off by default. To turn them on for launched sessions, set `DEBUGPY_LOG_DIR` to a directory in the server's environment (for an attach target, pass `--log-to
` or set `DEBUGPY_LOG_DIR` when starting the target). Either switch also turns pydevd's debug log on inside the debugged program, which slows it: leave them off unless you are diagnosing debugpy itself (issues #1264, #1384).
diff --git a/docs/tool-reference.md b/docs/tool-reference.md
index bd43c311a..b8d18aaee 100644
--- a/docs/tool-reference.md
+++ b/docs/tool-reference.md
@@ -381,7 +381,7 @@ Passing `logMessage` turns the breakpoint into a DAP logpoint: when the line is
| Adapter | Cost of one logpoint hit | False-condition breakpoint on the line | Logpoint elsewhere in the same function |
|---|---|---|---|
-| Python | 24.7 µs | 5.5 µs | whole function runs 58× slower |
+| Python | 11.7 µs | 5.3 µs | whole function runs 56× slower |
| JavaScript | 215 µs | 52 µs | whole function runs 2.57× slower |
| Go | 615 µs | 278 µs | no measurable effect (0.98×) |
| Rust | 635 µs | 544 µs | no measurable effect (0.99×) |
@@ -389,22 +389,22 @@ Passing `logMessage` turns the breakpoint into a DAP logpoint: when the line is
| COBOL | 1,687 µs (1.7 ms) | 614 µs | no measurable effect (1.00×) |
| Dart | 4,926 µs (4.9 ms) | 4,868 µs (4.9 ms) | whole function runs 1.70× slower |
-*Measured 2026-11-26 on mcp-debugger `ff291452` (`main`), Windows 11 Pro (Intel Core Ultra 9 285H), launch mode, debug builds, default server log level (`info`), medians over 5 runs (Python 3.13.12 + debugpy 1.8.20 `sys.monitoring` path; Node 24.14.1 + js-debug 1.140.0; Go 1.26.1 + Delve 1.26.3; Rust 1.94.1 GNU + CodeLLDB 1.12.3; g++ 15.2.0 MinGW + CodeLLDB 1.12.3; GnuCOBOL 3.2 + CodeLLDB 1.12.3 behind the adapter shim; Dart SDK 3.13.4). Not measured: Linux, optimized builds, Python's pre-3.12 tracing path, whether a hit stalls other threads in a multi-threaded program, and how much of Python's 24.7 µs comes from pydevd's debug logging (`DEBUGPY_LOG_DIR`). Attach mode is covered only by the check below.*
+*Measured 2026-11-26 on mcp-debugger `ff291452` (`main`), Windows 11 Pro (Intel Core Ultra 9 285H), launch mode, debug builds, default server log level (`info`), medians over 5 runs (Python 3.13.12 + debugpy 1.8.20 `sys.monitoring` path; Node 24.14.1 + js-debug 1.140.0; Go 1.26.1 + Delve 1.26.3; Rust 1.94.1 GNU + CodeLLDB 1.12.3; g++ 15.2.0 MinGW + CodeLLDB 1.12.3; GnuCOBOL 3.2 + CodeLLDB 1.12.3 behind the adapter shim; Dart SDK 3.13.4). Not measured: Linux, optimized builds, Python's pre-3.12 tracing path, and whether a hit stalls other threads in a multi-threaded program. Attach mode is covered only by the check below. The Python row was measured again on 2026-11-29, on the same machine with the same harness (the build of pull request #1392, medians over 5 runs, on mains power), after the adapter stopped turning debugpy's debug log on inside the debugged program (issue #1264). With that log on, as it was for every launch until then, a hit cost 26.1 µs, a false-condition breakpoint 5.6 µs, and the whole function ran 57× slower.*
-*Checked 2026-11-27 on the published mcp-debugger 0.27.0 and the same machine, on battery power this time (the table's power state was not recorded), for JavaScript and Python only, in launch mode and in attach mode (a `--inspect` port; a `debugpy --listen` port), four runs per configuration, with a different loop from the table's: first a logpoint on a line that never runs, then a logpoint hit 200 times in a burst with the message `h={i}`. Whole-function slowdown: JavaScript 7.5× to 8.8× launched and 4.8× to 8.4× attached; Python 26× to 59× launched and 25× to 49× attached. Per hit: JavaScript 0.40 to 0.43 ms launched and 0.37 to 0.47 ms attached; Python 41 to 72 µs launched and 14 to 25 µs attached. So in this check, attached by port, the whole-function slowdown was about the same as in launch mode on the same loop, and a hit cost about the same attached as launched in JavaScript and less in Python. The check is too coarse to confirm or refute the table's 0 to 3% for a debugger attached with nothing set. The figures also differ from the table's by up to about three and a half times (another loop, another message, a burst of hits, battery power, and a spread of about two between runs on this machine): read the table as the order of magnitude, not as constants.*
+*Checked 2026-11-27 on the published mcp-debugger 0.27.0 and the same machine, on battery power this time (the table's power state was not recorded), for JavaScript and Python only, in launch mode and in attach mode (a `--inspect` port; a `debugpy --listen` port), four runs per configuration, with a different loop from the table's: first a logpoint on a line that never runs, then a logpoint hit 200 times in a burst with the message `h={i}`. Whole-function slowdown: JavaScript 7.5× to 8.8× launched and 4.8× to 8.4× attached; Python 26× to 59× launched and 25× to 49× attached. Per hit: JavaScript 0.40 to 0.43 ms launched and 0.37 to 0.47 ms attached; Python 41 to 72 µs launched and 14 to 25 µs attached. So in this check, attached by port, the whole-function slowdown was about the same as in launch mode on the same loop, and a hit cost about the same attached as launched in JavaScript and less in Python. The check is too coarse to confirm or refute the table's 0 to 3% for a debugger attached with nothing set. The figures also differed from the table's, as it stood then, by up to about three and a half times (another loop, another message, a burst of hits, battery power, and a spread of about two between runs on this machine): read the table as the order of magnitude, not as constants. This check predates the change of 2026-11-29 described above. Its launched Python programs still ran with debugpy's debug log on and its attach targets did not, so its Python launch figures, and the finding that a hit cost less attached than launched, belong to that configuration and have not been repeated since.*
**Why the whole function slows down, and when it recovers.** The causes are read from each engine's source at the measured version, where they apply to any line breakpoint; the slowdowns are measured with logpoints.
- **JavaScript.** V8 de-optimizes a function when a breakpoint is set in it: it throws away the function's optimized and baseline code (`Debug::PrepareFunctionForDebugExecution` calling `Debug::DeoptimizeFunction`, `deps/v8/src/debug/debug.cc` in Node v24.14.1) and does not optimize it again while the breakpoint is there (`GetOrCompileOptimized` in `deps/v8/src/codegen/compiler.cc`: "Do not optimize if we need to be able to set break points"). What the function loses is what optimization had gained it, so the figure depends on the function: 2.57× on the table's loop, about 8× on the tighter arithmetic loop of the check above.
- **Dart.** The VM does not optimize a function that has a breakpoint (`Compiler::CanOptimizeFunction` in `runtime/vm/compiler/jit/compiler.cc`, SDK 3.13.4: "We cannot set breakpoints and single step in optimized code, so do not optimize the function"). 1.70× on the table's loop.
-- **Python 3.12 and later.** debugpy switches on line events for the whole function (`_enable_line_tracing` in pydevd's `_pydevd_sys_monitoring.py`, debugpy 1.8.20), and its line handler keeps them on for as long as the function has a line breakpoint, so every line the function executes calls into the debugger. CPython also runs the first instruction of each such line without its specialization while line events are on (`instrument_line` in `Python/instrumentation.c` and the `INSTRUMENTED_LINE` case in `Python/ceval.c`, CPython 3.13.12). How much of the slowdown each of the two explains was not measured. 58× on the table's loop, 25× to 59× in the check above.
+- **Python 3.12 and later.** debugpy switches on line events for the whole function (`_enable_line_tracing` in pydevd's `_pydevd_sys_monitoring.py`, debugpy 1.8.20), and its line handler keeps them on for as long as the function has a line breakpoint, so every line the function executes calls into the debugger. CPython also runs the first instruction of each such line without its specialization while line events are on (`instrument_line` in `Python/instrumentation.c` and the `INSTRUMENTED_LINE` case in `Python/ceval.c`, CPython 3.13.12). How much of the slowdown each of the two explains was not measured. 56× on the table's loop, 25× to 59× in the check above.
- **Recovery.** In the check above, after `remove_breakpoint` Python's first recorded call of the function and JavaScript's second were back in the range of its time without the logpoint; the first recorded call could include one already in flight when the logpoint was removed. After `detach_from_process` with the logpoint still set, the first recorded call was back in that range in both languages, and the program kept running. Dart's recovery was not checked.
In practice, a logpoint suits a line hit up to some hundreds or thousands of times a second, not a tight loop, and in Python, JavaScript and Dart a function that is not itself hot:
-- **Maximum hit rate doing nothing else** (and cost at 1,000 hits/s): Python about 40,000 hits/s (2.5% of a core at 1,000 hits/s); JavaScript about 4,600 hits/s (22% of a core); Go, Rust, and C/C++ about 1,600 hits/s (62–64% of a core); COBOL about 590 hits/s (1.7 s per 1,000 hits); Dart about 200 hits/s (4.9 s per 1,000 hits).
-- **Whole-function slowdown:** in Python (58×) and JavaScript (2.57×), and to a lesser degree Dart (1.70×), a logpoint anywhere in a function slows that whole function — even when the logpoint line itself is outside a tight loop. The native engines (Go, Rust, C/C++, COBOL) show no measurable effect outside the logpoint line. The slowdown lasts while the logpoint is set; in the JavaScript and Python check the function was back at its time without the logpoint by the second recorded call after the logpoint was removed or the debugger detached (Dart was not checked).
-- **Python delivery limit (issue #1265):** when hits outrun debugpy's delivery rate (measured at 3,200–4,400 lines/s during a run and about 6,000 lines/s draining after a loop), lines still queued when the program exits are lost, and the session's end answer does not say so.
+- **Maximum hit rate doing nothing else** (and cost at 1,000 hits/s): Python about 85,000 hits/s (1.2% of a core at 1,000 hits/s); JavaScript about 4,600 hits/s (22% of a core); Go, Rust, and C/C++ about 1,600 hits/s (62–64% of a core); COBOL about 590 hits/s (1.7 s per 1,000 hits); Dart about 200 hits/s (4.9 s per 1,000 hits).
+- **Whole-function slowdown:** in Python (56×) and JavaScript (2.57×), and to a lesser degree Dart (1.70×), a logpoint anywhere in a function slows that whole function — even when the logpoint line itself is outside a tight loop. The native engines (Go, Rust, C/C++, COBOL) show no measurable effect outside the logpoint line. The slowdown lasts while the logpoint is set; in the JavaScript and Python check the function was back at its time without the logpoint by the second recorded call after the logpoint was removed or the debugger detached (Dart was not checked).
+- **Python delivery limit (issue #1265):** when hits outrun debugpy's delivery rate (measured on 2026-11-26, with debugpy's debug log still on, at 3,200–4,400 lines/s during a run and about 6,000 lines/s draining after a loop; on 2026-11-29 with the log off, the loop ran twice as fast and no more of its lines got through: 6,000 to 6,900 of 180,000, against 9,600 to 11,500 of 78,000 with the log on), lines still queued when the program exits are lost, and the session's end answer does not say so.
**JavaScript logpoints are compiled by mcp-debugger** (issues #850, #861, #853). js-debug's own logpoints print through the debuggee's `console.log`, which a program that owns its stdout may have replaced (an MCP stdio server — mcp-debugger itself — no-ops it), and js-debug lets a `condition` take precedence over the message. So for a JavaScript session the `logMessage` is compiled into a breakpoint condition that renders the message, delivers it over js-debug's CDP proxy (a `Runtime.addBinding` global the proxy installs; hits before the binding exists are queued in the process and delivered when it arrives, never printed through `console.log`, issue #1212) and never pauses; the entries arrive with category `console`. What that means in practice:
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index 8487a6e8d..119c14f80 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -354,7 +354,7 @@ default, or a `sessions/` directory beside your `--log-file` when you set one:
dap-trace-.ndjson # only with DAP_TRACE=1
```
-Some debug engines drop their own logs into that same run directory.
+Some debug engines drop their own logs into that same run directory. Python's debugpy does not write its `debugpy.*.log` files by default: to turn them on for launched sessions, set `DEBUGPY_LOG_DIR` to a directory in the server's environment. Setting `DEBUGPY_LOG_DIR` also turns pydevd's debug log on inside the debugged program, which slows the program and should be left off unless you are diagnosing debugpy itself (issues #1264, #1384).
The proxy log follows the server's `--log-level` / `DEBUG_MCP_LOG_LEVEL`, so raise it to
`debug` before reproducing. The server logs the resolved base directory at startup
diff --git a/packages/adapter-python/src/python-debug-adapter.ts b/packages/adapter-python/src/python-debug-adapter.ts
index bcb68c42c..c9aaf1c0d 100644
--- a/packages/adapter-python/src/python-debug-adapter.ts
+++ b/packages/adapter-python/src/python-debug-adapter.ts
@@ -443,9 +443,13 @@ export class PythonDebugAdapter extends EventEmitter implements IDebugAdapter {
'--port', config.adapterPort.toString()
],
env: {
+ // DEBUGPY_LOG_DIR is not set here. debugpy also turns its debug log on
+ // inside the debugged program when it is set: that doubled the cost of a
+ // logpoint hit and made the freeze of #1384 far more likely (#1264). An
+ // operator who wants debugpy's logs sets it in the server's environment,
+ // and it passes through with the rest of process.env.
...process.env,
- PYTHONUNBUFFERED: '1', // Ensure unbuffered output
- DEBUGPY_LOG_DIR: config.logDir
+ PYTHONUNBUFFERED: '1' // Ensure unbuffered output
}
};
}
diff --git a/packages/shared/src/interfaces/adapter-policy-python.ts b/packages/shared/src/interfaces/adapter-policy-python.ts
index b2832c16e..21f72ae56 100644
--- a/packages/shared/src/interfaces/adapter-policy-python.ts
+++ b/packages/shared/src/interfaces/adapter-policy-python.ts
@@ -506,7 +506,7 @@ export const PythonAdapterPolicy = {
};
}
- // Otherwise, build the debugpy command
+ // Otherwise, build the debugpy command (no --log-dir: issues #1264, #1384)
const pythonPath = payload.executablePath || (process.platform === 'win32' ? 'python' : 'python3');
return {
@@ -515,8 +515,7 @@ export const PythonAdapterPolicy = {
args: [
'-m', 'debugpy.adapter',
'--host', payload.adapterHost,
- '--port', String(payload.adapterPort),
- '--log-dir', payload.logDir
+ '--port', String(payload.adapterPort)
],
host: payload.adapterHost,
port: payload.adapterPort,
diff --git a/skills/debugging/references/python.md b/skills/debugging/references/python.md
index 3fe97c35a..1705ef992 100644
--- a/skills/debugging/references/python.md
+++ b/skills/debugging/references/python.md
@@ -69,7 +69,7 @@ Shorthand: `create_debug_session { "language": "python", "host": "127.0.0.1", "p
- **Set breakpoints on executable lines** (assignments, calls, returns). Comments, blank lines, and bare `def`/`class` lines misbehave.
- **evaluate_expression** runs in debugpy's `variables` (watch-style) context by default. Reads and arithmetic are reliable; whether mutations like `x = 5` take effect depends on debugpy — verify with a follow-up evaluate before relying on one. Collections are truncated at 300 items.
- **Output capture works for Python** (`redirectOutput`): `print()` and stderr land in `get_output` entries, readable during and after the run until the session closes.
-- Logpoints work: `set_breakpoint` with `logMessage: "x={x}"` logs interpolated values to `get_output` without pausing. A field is an expression in the program's language. For Python, f-string field syntax (`{x!r}`, `{total:.2f}`, `{x=}`) is accepted where the server checked the message on the program's own interpreter, which is a launched session; the answer then carries `logMessageSent` (what debugpy received, e.g. `{f'{x!r}'}`) and `logMessageCheck` (why). Elsewhere (an attach, a launch naming its own `python`) the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: `{{x}}` is a set and `%%` is `%`. Nothing is refused; a message that runs is never changed. A check waits at most 2 s (5 s when it starts the checker) and otherwise answers "not checked"; a program that turns warnings into errors or lowers its integer digit limit can still fail on a message the check said runs. Each hit costs about 24.7 µs (2.5% of a core at 1,000 hits/s), and any logpoint in a function slows that whole function by 58× on Python 3.13 + debugpy (`sys.monitoring`) — keep logpoints off tight loops. When hits outrun debugpy's delivery rate (measured at 3,200–4,400 lines/s during a run, ~6,000 lines/s draining after), lines still queued at program exit are lost and the end answer does not say so (issue #1265). Full measurements: [docs/tool-reference.md#logpoints](https://github.com/debugmcp/mcp-debugger/blob/main/docs/tool-reference.md#logpoints).
+- Logpoints work: `set_breakpoint` with `logMessage: "x={x}"` logs interpolated values to `get_output` without pausing. A field is an expression in the program's language. For Python, f-string field syntax (`{x!r}`, `{total:.2f}`, `{x=}`) is accepted where the server checked the message on the program's own interpreter, which is a launched session; the answer then carries `logMessageSent` (what debugpy received, e.g. `{f'{x!r}'}`) and `logMessageCheck` (why). Elsewhere (an attach, a launch naming its own `python`) the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: `{{x}}` is a set and `%%` is `%`. Nothing is refused; a message that runs is never changed. A check waits at most 2 s (5 s when it starts the checker) and otherwise answers "not checked"; a program that turns warnings into errors or lowers its integer digit limit can still fail on a message the check said runs. Each hit costs about 11.7 µs (1.2% of a core at 1,000 hits/s), and any logpoint in a function slows that whole function by 56× on Python 3.13 + debugpy (`sys.monitoring`) — keep logpoints off tight loops. When hits outrun debugpy's delivery rate (a few thousand lines a second), lines still queued at program exit are lost and the end answer does not say so (issue #1265). Full measurements: [docs/tool-reference.md#logpoints](https://github.com/debugmcp/mcp-debugger/blob/main/docs/tool-reference.md#logpoints).
- **Child processes are debug sessions by default.** debugpy's sub-process debugging is on: each Python child the program starts (`subprocess`, `multiprocessing`, pytest-xdist workers) becomes a child debug session — `list_debug_sessions` lists it with `parentSessionId`, it stops on this session's breakpoints, and `wait_for_stop` on this session reports the child's stop with `sessionId` naming the child (inspect and step with that id) and `children` listing the tree; a child can still be waited on by its own id. `dapLaunchArgs: { subProcess: false }` opts a launch out (the children run undebugged; the answer's warning says so); an attach target decides for itself (`python -m debugpy --listen … --configure-subProcess false`). `DEBUG_MCP_MAX_CHILD_SESSIONS=0` turns adoption off server-wide.
## Troubleshooting
diff --git a/src/server/tool-schemas.ts b/src/server/tool-schemas.ts
index f866edba8..daf7243f0 100644
--- a/src/server/tool-schemas.ts
+++ b/src/server/tool-schemas.ts
@@ -219,7 +219,7 @@ export function buildToolDefinitions(options: BuildToolDefinitionsOptions): Tool
{ name: 'create_debug_session', description: 'Create a new debugging session. Passing port, processId or an adapterConfig that names a target (a debugger URI: vmServiceUri, websocketAddress, vmServiceInfoFile; or a Flutter deviceId, for an app running on an Android device) attaches to a running process in the same call, with every attach argument attach_to_process takes (host alone does not); omit them for launch mode. Attaching requests a pause by default (stopOnEntry, see attach_to_process); the answer\'s state and warning say whether one was requested and whether it landed', inputSchema: { type: 'object', properties: { language: { type: 'string', enum: supportedLanguages, description: 'Programming language for debugging' }, name: { type: 'string', description: 'Optional session name' }, executablePath: {type: 'string', description: 'Path to language executable (optional, will auto-detect if not provided)'}, host: { type: 'string', description: 'Attach mode only: host to attach to (the adapter defaults it, usually 127.0.0.1). Does not trigger attach mode by itself' }, port: { type: 'number', description: 'Debug port to attach to (triggers attach mode)' }, processId: { type: ['number', 'string'], description: 'Process ID for local attach, language-specific (triggers attach mode)' }, sourcePaths: { type: 'array', items: { type: 'string' }, description: 'Attach mode only: source paths for code mapping' }, justMyCode: { type: 'boolean', description: 'Attach mode only: only debug user code (skip library code)' }, breakOnExceptions: { type: 'string', enum: ['uncaught', 'all', 'none'], description: 'Attach mode only: break when exceptions are thrown: "uncaught" pauses at uncaught exceptions at the crash site; "all" also pauses on caught/raised exceptions (language-dependent). Default "none" — attach sessions never apply a language default (unlike launch)' }, stopOnEntry: { type: 'boolean', description: 'Attach mode only: same as attach_to_process.stopOnEntry — omitted means true, a pause is requested after attach (it can land late, reported as pending:true). Pass false to attach to a live service without stopping it' }, timeout: { type: 'number', description: 'Attach mode only: connection timeout in milliseconds, forwarded as-is; js-debug honours it (its own default is 10 s) and COBOL uses it as its manifest-build budget, the other adapters ignore it. A value longer than verifyTimeout means the verify deadline is what you hit' }, verifyTimeout: { type: 'number', description: 'Attach mode only: how long to wait (ms) for the debugger to report at least one thread after attaching before failing the attach (default: 20000, max: 600000)' }, adapterConfig: { type: 'object', description: 'Attach mode only: adapter-specific attach configuration merged into the attach config (see attach_to_process). Triggers attach mode when it names a debugger URI (vmServiceUri, websocketAddress) or vmServiceInfoFile', additionalProperties: true } }, required: ['language'] } },
{ name: 'list_supported_languages', description: 'List all supported debugging languages with metadata', inputSchema: { type: 'object', properties: {} } },
{ name: 'list_debug_sessions', description: 'List all active debugging sessions. Paused sessions include lastStop with the reason for the most recent stop (e.g. "breakpoint" vs "exception")', inputSchema: { type: 'object', properties: {} } },
- { name: 'set_breakpoint', description: `Set a breakpoint. Setting breakpoints on non-executable lines (structural, declarative) may lead to unexpected behavior. A breakpoint can answer verified: false before the launch, or until the module or class holding its line is loaded; that is normal.${addressingScopeSentence}${snapSentence}`, inputSchema: { type: 'object', properties: { sessionId: { type: 'string' }, file: { type: 'string', description: 'Path to the source file or Java FQCN. For Java, passing a fully-qualified class name (e.g. "com.example.MyClass" or "com.example.Outer$Inner") is preferred — it works reliably with all classloaders including custom classloaders. Alternatively, use absolute file paths.' }, line: { type: 'number', description: 'Line number where to set breakpoint. Executable statements (assignments, function calls, conditionals, returns) work best. Structural lines (function/class definitions), declarative lines (imports), or non-executable lines (comments, blank lines) may cause unexpected stepping behavior' }, ...setBreakpointExtraProps, condition: { type: 'string', description: 'Optional expression: only break (or log) when it evaluates truthy' }, logMessage: { type: 'string', description: 'Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. "order={orderId} total={total}"). A field is an expression in the program\'s language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program\'s own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy\'s own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby' }, suspendPolicy: { type: 'string', enum: ['all', 'thread'], description: 'Suspend policy when breakpoint is hit: "all" suspends all threads (default), "thread" only suspends the event thread. Only supported by the Java/JDI adapter.' } }, required: setBreakpointRequired } },
+ { name: 'set_breakpoint', description: `Set a breakpoint. Setting breakpoints on non-executable lines (structural, declarative) may lead to unexpected behavior. A breakpoint can answer verified: false before the launch, or until the module or class holding its line is loaded; that is normal.${addressingScopeSentence}${snapSentence}`, inputSchema: { type: 'object', properties: { sessionId: { type: 'string' }, file: { type: 'string', description: 'Path to the source file or Java FQCN. For Java, passing a fully-qualified class name (e.g. "com.example.MyClass" or "com.example.Outer$Inner") is preferred — it works reliably with all classloaders including custom classloaders. Alternatively, use absolute file paths.' }, line: { type: 'number', description: 'Line number where to set breakpoint. Executable statements (assignments, function calls, conditionals, returns) work best. Structural lines (function/class definitions), declarative lines (imports), or non-executable lines (comments, blank lines) may cause unexpected stepping behavior' }, ...setBreakpointExtraProps, condition: { type: 'string', description: 'Optional expression: only break (or log) when it evaluates truthy' }, logMessage: { type: 'string', description: 'Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. "order={orderId} total={total}"). A field is an expression in the program\'s language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program\'s own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy\'s own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby' }, suspendPolicy: { type: 'string', enum: ['all', 'thread'], description: 'Suspend policy when breakpoint is hit: "all" suspends all threads (default), "thread" only suspends the event thread. Only supported by the Java/JDI adapter.' } }, required: setBreakpointRequired } },
{ name: 'list_breakpoints', description: 'List all breakpoints in a session with their verified state and adapter-assigned ids. Session-global function breakpoints appear separately as functionBreakpoints (omitted when filtering by file). Works before launch (queued, verified=false), while running or paused, and after the program exits', inputSchema: { type: 'object', properties: { sessionId: { type: 'string' }, file: { type: 'string', description: 'Optional: only list breakpoints in this file' } }, required: ['sessionId'] } },
{ name: 'remove_breakpoint', description: 'Remove a breakpoint by breakpointId (returned by set_breakpoint / list_breakpoints), by function name, or by file + line (removes all breakpoints at that location). Takes effect immediately while the program is running or paused; also works after the program exits, before a relaunch', inputSchema: { type: 'object', properties: { sessionId: { type: 'string' }, breakpointId: { type: 'string', description: 'Breakpoint id from set_breakpoint or list_breakpoints. Takes precedence over file + line' }, function: { type: 'string', description: 'Alternative addressing: remove all function breakpoints with this symbol name. Applies the same per-language rewrite as set_breakpoint (e.g. a bare Go "main" matches the stored "main.main"); the response reports the effective name as functionName and, when rewritten, the original as requestedName' }, file: { type: 'string', description: 'Alternative addressing: source file path (use together with line)' }, line: { type: 'number', description: 'Alternative addressing: line number (use together with file)' } }, required: ['sessionId'] } },
{ name: 'clear_breakpoints', description: 'Remove all breakpoints in a session, or all breakpoints in one file. Clearing zero breakpoints is success. Takes effect immediately while the program is running or paused', inputSchema: { type: 'object', properties: { sessionId: { type: 'string' }, file: { type: 'string', description: 'Optional: only clear breakpoints in this file' } }, required: ['sessionId'] } },
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-true.json
index f34f94fe6..13f130a85 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-true.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-unset.json
index a8d273102..28b42f777 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-explicit.container-unset.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-true.json
index 054ee3812..fc0753cfc 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-true.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-unset.json
index 48c2624c2..dc98b8d4a 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-open.container-unset.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-true.json
index 054ee3812..fc0753cfc 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-true.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-unset.json
index 48c2624c2..dc98b8d4a 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-assert.va-unset.container-unset.json
@@ -124,7 +124,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-true.json
index af7085821..390b733b7 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-unset.json
index d3ceb3f09..0dfb94826 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-explicit.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-true.json
index 9a9bb3799..303bdfb60 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-unset.json
index 35fe0fc6b..d212d44e8 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-open.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-true.json
index 9a9bb3799..303bdfb60 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-unset.json
index 35fe0fc6b..d212d44e8 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-content.va-unset.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-true.json
index 0fe4c5566..599596add 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-true.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-unset.json
index 8561b60cf..112256687 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-explicit.container-unset.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-true.json
index 05fe103d0..8b97338a1 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-true.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-unset.json
index 55cc4410f..e20503906 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-open.container-unset.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-true.json
index 05fe103d0..8b97338a1 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-true.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-unset.json
index 55cc4410f..e20503906 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-line.va-unset.container-unset.json
@@ -120,7 +120,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-true.json
index af7085821..390b733b7 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-unset.json
index d3ceb3f09..0dfb94826 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-explicit.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-true.json
index 9a9bb3799..303bdfb60 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-unset.json
index 35fe0fc6b..d212d44e8 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-open.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-true.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-true.json
index 9a9bb3799..303bdfb60 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-true.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-true.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-unset.json b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-unset.json
index 35fe0fc6b..d212d44e8 100644
--- a/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-unset.json
+++ b/tests/core/unit/server/__snapshots__/tool-list/bp-unset.va-unset.container-unset.json
@@ -136,7 +136,7 @@
},
"logMessage": {
"type": "string",
- "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (24.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
+ "description": "Create a logpoint: instead of pausing, log this message when the line is hit. Expressions in {curly braces} are interpolated (e.g. \"order={orderId} total={total}\"). A field is an expression in the program's language. For Python, f-string field syntax ({x!r}, {total:.2f}, {x=}) is accepted where the server checked the message on the program's own interpreter, which is a launched session: the answer then shows logMessageSent, what debugpy received, and logMessageCheck, what was found. Elsewhere the message goes to debugpy as written, which evaluates each field as a plain expression, and the answer says it was not checked. debugpy's own reading wins whenever it can run the message: {{x}} is a set and %% is %. Messages arrive in get_output without pausing, but each hit costs time (11.7 µs in Python to 4.9 ms in Dart), so logpoints are not for tight loops; and in Python, JavaScript and Dart a function that holds a line breakpoint of any kind, a logpoint included, runs slower as a whole while it holds it. Supported by the Python, JavaScript, Go, Rust, C/C++, COBOL ({WS-NAME} data references), Dart and mock adapters; not by Java, .NET, or Ruby"
},
"suspendPolicy": {
"type": "string",
diff --git a/tests/unit/adapter-python/python-debug-adapter.test.ts b/tests/unit/adapter-python/python-debug-adapter.test.ts
index 264aea6b4..2ed9480a4 100644
--- a/tests/unit/adapter-python/python-debug-adapter.test.ts
+++ b/tests/unit/adapter-python/python-debug-adapter.test.ts
@@ -95,21 +95,69 @@ describe('PythonDebugAdapter', () => {
expect(getPythonVersion).not.toHaveBeenCalled();
});
- it('returns adapter command with debugpy arguments', () => {
- const adapter = new PythonDebugAdapter(createDependencies());
- const cmd = adapter.buildAdapterCommand({
- sessionId: 's1',
- executablePath: '/usr/bin/python',
- adapterHost: '127.0.0.1',
- adapterPort: 9000,
- logDir: '/tmp/logs',
- scriptPath: '/app/main.py',
- launchConfig: {}
- });
-
- expect(cmd.command).toBe('/usr/bin/python');
- expect(cmd.args).toEqual(['-m', 'debugpy.adapter', '--host', '127.0.0.1', '--port', '9000']);
- expect(cmd.env?.DEBUGPY_LOG_DIR).toBe('/tmp/logs');
+ /**
+ * The variable as the spawned process would read it. Windows reads names
+ * without regard to case, and a host that already holds it under another
+ * case keeps that spelling when the test sets it.
+ */
+ const debugpyLogDirOf = (env: Record | undefined): string | undefined => {
+ const key = Object.keys(env ?? {}).find(name => name.toUpperCase() === 'DEBUGPY_LOG_DIR');
+ return key === undefined ? undefined : env?.[key];
+ };
+
+ it('returns adapter command with debugpy arguments and no DEBUGPY_LOG_DIR by default (issue #1264)', () => {
+ const previous = process.env.DEBUGPY_LOG_DIR;
+ delete process.env.DEBUGPY_LOG_DIR;
+ try {
+ const adapter = new PythonDebugAdapter(createDependencies());
+ const cmd = adapter.buildAdapterCommand({
+ sessionId: 's1',
+ executablePath: '/usr/bin/python',
+ adapterHost: '127.0.0.1',
+ adapterPort: 9000,
+ logDir: '/tmp/logs',
+ scriptPath: '/app/main.py',
+ launchConfig: {}
+ });
+
+ expect(cmd.command).toBe('/usr/bin/python');
+ expect(cmd.args).toEqual(['-m', 'debugpy.adapter', '--host', '127.0.0.1', '--port', '9000']);
+ expect(debugpyLogDirOf(cmd.env)).toBeUndefined();
+ // Nothing else is added either (PYDEVD_DEBUG, DEBUGPY_LOG_STDERR, ...): the
+ // spawn environment is the server's own plus the one variable below.
+ expect(cmd.env).toEqual({ ...process.env, PYTHONUNBUFFERED: '1' });
+ } finally {
+ if (previous === undefined) {
+ delete process.env.DEBUGPY_LOG_DIR;
+ } else {
+ process.env.DEBUGPY_LOG_DIR = previous;
+ }
+ }
+ });
+
+ it('passes through DEBUGPY_LOG_DIR from the environment untouched (issue #1264)', () => {
+ const previous = process.env.DEBUGPY_LOG_DIR;
+ process.env.DEBUGPY_LOG_DIR = '/custom/debugpy-logs';
+ try {
+ const adapter = new PythonDebugAdapter(createDependencies());
+ const cmd = adapter.buildAdapterCommand({
+ sessionId: 's1',
+ executablePath: '/usr/bin/python',
+ adapterHost: '127.0.0.1',
+ adapterPort: 9000,
+ logDir: '/tmp/logs',
+ scriptPath: '/app/main.py',
+ launchConfig: {}
+ });
+
+ expect(debugpyLogDirOf(cmd.env)).toBe('/custom/debugpy-logs');
+ } finally {
+ if (previous === undefined) {
+ delete process.env.DEBUGPY_LOG_DIR;
+ } else {
+ process.env.DEBUGPY_LOG_DIR = previous;
+ }
+ }
});
it('throws on invalid exception filters', async () => {
diff --git a/tests/unit/shared/adapter-policy-python.test.ts b/tests/unit/shared/adapter-policy-python.test.ts
index 880dac5fd..c6597bd27 100644
--- a/tests/unit/shared/adapter-policy-python.test.ts
+++ b/tests/unit/shared/adapter-policy-python.test.ts
@@ -207,16 +207,19 @@ describe('PythonAdapterPolicy', () => {
).toThrow(/debugpy --listen/);
});
- it('still spawns debugpy.adapter for launch', () => {
+ it('still spawns debugpy.adapter for launch without --log-dir (issue #1264)', () => {
const config = PythonAdapterPolicy.getAdapterSpawnConfig!({
...basePayload,
launchConfig: { request: 'launch' }
});
- expect(config.mode).toBe('spawn');
- expect(config).toMatchObject({
+ expect(config).toEqual({
+ mode: 'spawn',
command: 'python',
- args: expect.arrayContaining(['-m', 'debugpy.adapter'])
+ args: ['-m', 'debugpy.adapter', '--host', '127.0.0.1', '--port', '40000'],
+ host: '127.0.0.1',
+ port: 40000,
+ logDir: '/logs'
});
});