Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 27, 2023

This means we can remove some complexity from the debug system in dynlink.c and other native callers of this function get, for example, the current thread into prepended to the debug message.

Also, make sure that under node, when threads are enabled we bypass the console and write directly to stderr.

@sbc100 sbc100 requested a review from kripken January 27, 2023 23:45
@sbc100 sbc100 enabled auto-merge (squash) January 28, 2023 00:05
@sbc100 sbc100 force-pushed the native_dbg branch 7 times, most recently from e54cf3b to d30654f Compare January 28, 2023 22:46
@sbc100 sbc100 requested a review from tlively January 28, 2023 22:47
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % comments

printf("hello, world!\n");
#ifndef NDEBUG
// This symbol is only available in debug builds (i.e. -sASSERTIONS)
_emscripten_dbg("native dbg message");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this test _emscripten_dbgf as well?

@tlively tlively disabled auto-merge January 28, 2023 23:26
This means we can remove some complexity from the debug system in
`dynlink.c` and other native callers of this function get, for example,
the current thread into prepended to the debug message.
@sbc100 sbc100 enabled auto-merge (squash) January 28, 2023 23:51
@sbc100 sbc100 merged commit 801e663 into main Jan 29, 2023
@sbc100 sbc100 deleted the native_dbg branch January 29, 2023 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants