emscripten-core / emscripten-core/emscripten
Enabling -sSOCKET_DEBUG= spams console with all kinds of debugging unrelated to sockets debugging.
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
I am investigating a bug in our code regarding __syscall_send in pthreads proxied builds. Code works in singlethreaded builds, but doesn't in multithreaded. To quickly be able to figure out what is the discrepancy between ST and MT builds, I want to enable `-sSOCKET_DEBUG=1` to be able to dump the WebSockets comms in each.
However, when I do that, I get a build that spams to me all sorts of other debug info and the interesting information that I want to debug with WebSockets is drowned in the noise:

making it impossible to find the actual sockets debug prints.
I see there's this construct:

and hence

Locally I can get rid of this by deleting the line

but it doesn't seem that `SOCKET_DEBUG` (or any of those `xxx_DEBUG`s for that matter?) should imply `RUNTIME_DEBUG`, that is counterproductive?
Contributor guide
Assessment
This issue has not been assessed yet.