Commit 114b7df
Automerge: [lldb][windows] use OutputDebugStringA instead of c to log events (#156474)
In llvm/llvm-project#150213 we made use of the
Event Viewer on Windows (equivalent of system logging on Darwin) rather
than piping to the standard output. This turned out to be too verbose in
practice, as the Event Viewer is developer oriented and not user
oriented.
This patch swaps the use of `ReportEventW` for `OutputDebugStringA`,
allowing to use tools such as `DebugView` to record logs when we are
interested in receiving them, rather than continuously writing to the
buffer. Please see an example below:
<img width="1253" height="215" alt="Screenshot 2025-09-02 at 16 07 03"
src="https://github.com/user-attachments/assets/4a326e46-d8a4-4c99-8c96-1bee62da8d55"
/>1 file changed
+10
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
308 | 306 | | |
309 | 307 | | |
310 | 308 | | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | 309 | | |
332 | 310 | | |
333 | 311 | | |
334 | 312 | | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
| 313 | + | |
| 314 | + | |
342 | 315 | | |
343 | | - | |
344 | 316 | | |
345 | 317 | | |
346 | | - | |
| 318 | + | |
347 | 319 | | |
348 | 320 | | |
349 | | - | |
| 321 | + | |
350 | 322 | | |
351 | 323 | | |
352 | 324 | | |
353 | | - | |
| 325 | + | |
| 326 | + | |
354 | 327 | | |
355 | 328 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
359 | 333 | | |
0 commit comments