title: How to prevent React / React Native from automatically attaching a stacktrace to my console warnings in the React Native Debugger
body: <p>I like to use the console to debug my React-Native (0.63.4) application.
  For some time now, React seems to automatically add a stack trace to my <code>console.warn</code> and <code>console.error</code> logs.
  For example, the logs look like this in the Chrome debugger:</p>
  <p><a href="https://i.stack.imgur.com/tmCWv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tmCWv.png" alt="screenshot of stacktrace added from react" /></a></p>
  <p>As you can see in the screenshot, the log message is actually collapsed (see small arrow in the upper left). So I assume that the stacktrace is added via some function in React in addition to the &quot;normal&quot; stacktrace. When I expand the message, the &quot;normal&quot; stacktrace of the Chrome debugger appears below, e.g.</p>
  <p><a href="https://i.stack.imgur.com/TxuyB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TxuyB.png" alt="screenshot of chrome stacktrace" /></a>:</p>
  <p>I'm sure this feature might be quite helpful, but the logs become completely illegible and confusing if they contain a few warnings. Therefore My question, does anyone know how to disable this feature?</p>