Tag: debugging
All the articles with the tag "debugging".
-
How to debug JavaScript to find code which modifies your DOM
Using Object.defineProperty to intercept input value assignments and trigger a debugger breakpoint on DOM mutation.
-
git bisect - first time usage impression
First hands-on experience with git bisect to locate a regression in an ASP.NET WebForms GridView rendering bug.
-
Debugging weird focus behavior in browser
Technique for debugging unexpected focus changes by monkey-patching HTMLElement.prototype.focus with a debugger breakpoint.
-
sqlcmd - Get real sql error line number
A PowerShell wrapper for sqlcmd that maps batch-relative error line numbers back to the real script line.
-
Write-Error vs error tracing
PowerShell Write-Error always reports line 1 instead of the actual error location, with no clean workaround found.
-
PowerShell $ErrorActionPreference = "Stop" vs error tracing
Why ErrorActionPreference Stop hides the true error line number and how trap { throw $Error[0] } fixes it.
-
PowerShell Start-Job WTF
Troubleshoots Start-Job scope issues with PSScriptRoot and shows how to invoke a script path asynchronously using ScriptBlock.Create.
-
PowerShell Start-Process WTF
Documents a known PowerShell bug where Start-Process -PassThru does not expose ExitCode, with a workaround using Process.Start.
-
PowerShell .NET property access swallows exceptions
Demonstrates that PowerShell silently returns null when a .NET property getter throws an exception, and how to avoid it.
-
The best debugging technique - inverse breakpoint
Using Debugger.Launch and Debugger.Break in C# code to attach a debugger to hard-to-reach processes like Visual Studio plugins.