DEV Community

Discussion on: why you should not use console.log( ) for debugging ?

Collapse
 
maixuanhan profile image
Han Mai

For hot debug, nothing is better than console.log. For production, tracking log for long time to view later, console.log shows a lot disadvantages. Depend on your purpose and your debugging stage, wisely choose the right component because some components may interfere the issue in some conditions.