Tag:debugging
All the articles with the tag "debugging".
'One long debug story' or 'checkbox.onclick'
A multi-hour debugging session reveals why setting checkbox.checked inside an onclick handler requires setTimeout to work correctly.
Read more…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.
Read more…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.
Read more…Debugging weird focus behavior in browser
Technique for debugging unexpected focus changes by monkey-patching HTMLElement.prototype.focus with a debugger breakpoint.
Read more…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.
Read more…Write-Error vs error tracing
PowerShell Write-Error always reports line 1 instead of the actual error location, with no clean workaround found.
Read more…PowerShell $ErrorActionPreference = "Stop" vs error tracing
Why ErrorActionPreference Stop hides the true error line number and how trap { throw $Error[0] } fixes it.
Read more…PowerShell Start-Job WTF
Troubleshoots Start-Job scope issues with PSScriptRoot and shows how to invoke a script path asynchronously using ScriptBlock.Create.
Read more…PowerShell Start-Process WTF
Documents a known PowerShell bug where Start-Process -PassThru does not expose ExitCode, with a workaround using Process.Start.
Read more…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.
Read more…