Remix.run Logo
planb 5 days ago

The tricky race conditions are the ones you often don't see in the debugger, because stopping one thread makes the behavior deterministic. But that aside, for webapps I feel it's way easier to just set a breakpoint and stop to see a var's value instead of adding a print statement for it (just to find out that you also need to see the value of another var). So given you just always start in debugging mode, there's no downside if you have a good IDE.

pjmlp 5 days ago | parent [-]

Using a debugger isn't a synonymous with single stepping.

spongebobstoes 4 days ago | parent [-]

Even just the debugger overhead can be enough to change the behavior of a subtle race condition