Ever wonder if there's a better way to debug than print statements? 🤔 Sophisticated tools can save time & energy! How have you leveled up your debugging game? Share your experiences! #ITpractices #debuggingtip
Understand the problem before trying to fix it.
When you encounter a bug, resist the urge to immediately start changing code. Instead, take the time to thoroughly understand the problem.
#DebuggingTip
Improve your JavaScript debugging skills with:
console.log(JSON.stringify(object, null, 2))
This handy code snippet helps you easily log and format complex objects in the console for easy debugging and analysis. #JavaScript#DebuggingTip
#DebuggingTip: A good debugging strategy can be to remove parts of code until the problem disappears. In case of UI, you can remove UI elements until the bug stops occurring. Eventually, you will find the problematic element: Simple divide & conquer. bit.ly/3fCrgmK
When debugging LINQ, place a breakpoint inside lambda expressions to evaluate individual items. bit.ly/3dzjhG6
#debugging# LINQ #debuggingtip#breakpoint
#DebuggingTip: When debugging an error, you can only see the instance of an object your debugger is currently in. Ozcode’s Show All Instances feature lets you see all other instances of the same type currently running in your application. bit.ly/33FAVlQ#VisualStudio
#DebuggingTip: Is your application experiencing performance issues? @dotTrace can point you to the root of the problem. It’s a tool from @JetBrains that works similarly to #VisualStudio profiler to show how you’re using system resources. bit.ly/3f5FOZP
#DebuggingTip: A good #debugging strategy can be to remove parts of code until the problem disappears. In case of UI, you can remove UI elements until the bug stops occurring. Eventually, you will find the problematic element: Simple divide & conquer. bit.ly/3oYcN6W
💡Quick debugging Tip💡
You can copy anything directly from debugger to 📋 clipboard.
👉copy(someObj);
This is very handy when you want to investigate big objects or sites with disabled right click to copy.
#js #javaScript #debuggingJaUp
#DebuggingTip: With Visual Studio, you can set Tracepoints, which are like breakpoints that log information instead of stopping. While Tracepoints hurt performance, often, they are all you need to catch the bug. bit.ly/33Ntedu
#DebuggingTip: 💭Tasks Window ✔️
Did you know that there’s a debug window dedicated to tasks? Ever opened it? (hint: Debug -> Windows -> Tasks).bit.ly/3kWWULf4i