#debugging
How you ever wondered what it would be like for your #repl to go full-on M-x #goblin-mode? Check out this live #guile demo of time-travel #debugging with @spritelyinst's Goblins from @dthompson@tootcat
Normally, I feel excited and happy when I finish a new coding feature. But tonight...meh. Not sure why.
🐍 Why and how to hide the Python stack trace
➥ Bite Code!
"Once you ship your software, most of your end users will be better served by replacing the stack trace with some actionable error message in case of a crash.
This means you need to think of the user experience you want for when things go completely wrong"
#Python #StackTrace #Debugging
https://www.bitecode.dev/p/why-and-how-to-hide-the-python-stack
The day so far.
Create a Lucene search.
It doesn't work.
Start debugging by commenting out code until 'something' works.
Comment stuff back in.
Now it all works.....*sigh*
"With every additional character you type, you're increasing the likelihood of a mistake.
This is true when it comes to typos, sure. But typos tend to be easy to catch and fix. The really troublesome bugs — the ones that tend to break user experiences for weeks as developers pass the support ticket around like a hot potato — are often caused by too much complexity, not too many characters."
➥ Josh Comeau
#debugging #complexity
https://www.joshwcomeau.com/career/clever-code-considered-harmful/
My talk at DevDays & DevOps Pro Europe 2023 is now available:
I will be speaking today (virtually) at the Stockholm JUG. Join me to learn about debugging
New video is up in which I do a bit of debugging to find the cause of a failing Django command:
https://youtu.be/8HfGL8fo_58
Great news hoomans! Python 3.12 brings new features and fixes! Finally, myssstical creatures like me can use the Linux profiler tool perf with Python! Let the games of debugging begin! 😼🐍 #Python #Programming #Debugging
The prime fallacy of software engineering / debugging:
"It has been working before! If THIS didn't work, people would have noticed earlier."
=> No it hasn't! Maybe someone noticed something, but no one diagnosed / complained enough...
At the source of every error which is blamed on the computer you will find at least two human errors, including the error of blaming it on the computer.
— anonymous
Я заметил, что быстрее всего получается кому-то дебажить, когда человек делает все, что я говорю, даже если это звучит глупо. Иногда, когда кто-то уверенно говорит, что "нет, тут все нормально" оказывается, что нет не всё нормально. Хотя, возможно я начинаю слишком наседать в желании найти причину бага. Но стоит признать, иногда я бываю не прав в большинстве случаев, но это помогает мне идти вперед в поисках бага.
#Debugging #mTLS issue is the worst
The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'
— Isaac Asimov
After 24 hours of #testing, compiling and #debugging multiple branches of #Nautilus to improve recursive file search #performance in #GNOME (or whoever uses this file manager on #Linux), we have not only identified a couple of extra improvements that could sit on top of https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1205, but also a performance bug that can represent the massive difference between needing 1½ minute vs "only a few seconds" to search through my 500,000+ files in some circumstances: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2967

When debugging, novices insert corrective code; experts remove defective code.
— Richard Pattis
Logs Told Us It Was DNS, It Looked like DNS, It Had to Be DNS, It Wasn't DNS
https://www.usenix.org/conference/srecon23americas/presentation/malla
Discussions: https://discu.eu/q/https://www.usenix.org/conference/srecon23americas/presentation/malla
「 When you have a predicate that acts on a tree data structure, rather than return a Boolean, you should return an object that represents success/failure and carries explanatory information in the failure case 」
— borretti.me
#ErrorHandling #Debugging #SoftwareDevelopment
https://borretti.me/article/return-reasons-not-booleans
Das dictionary "dto" enthält neben numerischen Werten auch Boolean Werte.
# Clear invalid int values < 1
for key, value in dict(dto).items():
if (isinstance(value, int) and not isinstance(value, bool)) and value < 1:
del dto[key]
Danke #python für die lange Fehlersuche: Der Booleanwert "False" wird auch als Integer-Wert "0" interpretiert. Deshalb muss man die zweite Bedingung explizit hinschreiben. #bugfix #debugging
Wieder was gelernt.
#wiederwasgelernt #mussmanwissen
@hamatti n00b question but what for is this ref parameter in the url of the latest syntax error newsletter #4: https://github.com/pry/pry?ref=syntaxerror.tech ? #debugging #syntaxerrornewsletter
164 email subscribers and unknown amount of RSS subscribers just received the newest, hot off the press, edition of Syntax Error newsletter.
Read it here https://www.syntaxerror.tech/syntax-error-4-refreshing-wrong-window/ and subscribe if you haven't yet!
It's almost quack o'clock!
Syntax Error's May issue hits inboxes and RSS readers around the globe this Wednesday.
If you haven't yet subbed, head over to https://syntaxerror.tech to do that. If you have, share it with 3 of your dev friends so they can subscribe and join the duck pond.
Syntax Error is a monthly newsletter with thoughts, tips and stories about #debugging #software.
It's clearly a Monday when you're debugging closed caption playback problems with a specific file and as a result have to send patches to GStreamer, FFmpeg, and VLC.
Also, check out my other articles on #UNIX, #shells, #editor·s, #debugging, #PasswordManagers, #Rust #Async (I should really read this post of mine, I totally forgot its contents, even that I wrote it!) or #LaTeX :-)
Silence is Golden, Debugging is Silver
How to adjust PHP error reporting for WordPress Debugging
https://www.itthinx.com/2022/11/28/silence-is-golden-debugging-is-silver/
#WordPress #PHP #Tutorial #Debugging #Howto #deprecated #error #warning
Debuginfod can index source code as well as debug symbols https://blog.sergiodj.net/posts/ubuntu-debuginfod-source-code-indexing/ | https://lobste.rs/s/3n2c2m #debugging #linux
Debugging bash script libraries #bash #debugging
Inspecting coredumps, Plotting, and Filtering With PiHole and Podman
#debugging #python #networking
👉 Please retweet if you ❤ Plurrrr. Thanks! 👍
Ahrefs Webmaster Tools, When fonts fall, and long lines in Emacs
#debugging #tumblelog #css #emacs
👉 Please retweet if you ❤ Plurrrr. Thanks! 👍
Excited to share what we've been working on https://prefab.cloud/blog/dynamic-log-levels/ #ruby #debugging
Call me a dinosaur, but back in my day, we didn't have 'apps', we had real software. 1s and 0s were our poetry, mainframes our canvas. Now it's all emojis and cloud nonsense. Follow me if you miss the good ol' days when debugging involved a real bug. #programming #debugging
Koolkits provide opinionated, language-specific, batteries-included debug container images for Kubernetes.
Why? — Since production containers are usually rather bare, using a KoolKit enables you to troubleshoot with power tools instead of relying on what was left behind due to the generosity (or carelessness) of whoever originally built the production image.
https://github.com/lightrun-platform/koolkits
#tools #kubernetes #infra #debugging #DebugContainers #koolkits
Koolkits provide opinionated, language-specific, batteries-included debug container images for Kubernetes.
Why? — Since production containers are usually rather bare, using a KoolKit enables you to troubleshoot with power tools instead of relying on what was left behind due to the generosity (or carelessness) of whoever originally built the production image.
https://github.com/lightrun-platform/koolkits
#tools #kubernetes #infra #debugging #DebugContainers #koolkits
#Drupal #debugging One of our devs was having trouble saving a form display, using field groups. 26 individual field groups, close to 100 fields. Requests kept timing out.
@mortona2k put it under a profiler and found one method getting called 8.9 million times, and 2.4 thousand database inserts, all from a single save on this page!
Commenting out a cache rebuild call made it all succeed...
「 Elixir is a functional programming language that allows building scalable and very resilient applications. We use it at Capchase coupled with Oban to generate jobs to fetch data from multiple sources. Elixir is by default a very resource light language. We are running hundreds of thousands of jobs a day and yet we average 5% CPU usage over 3 nodes with the biggest spikes at 30% 」
— Lucas Silva
#MyElixirStatus #Elixir #Profiling #Debugging
https://medium.com/@lucas_22744/how-capchase-leverages-profiling-to-improve-performance-in-elixir-ff7f4294a0b1
#GitHub question for folks:
What is _actually_ happening when I `rebase & merge` in the UI?
At work we were doing rebases onto develop then wanted to rebase develop onto main.
However we were getting multiple commits showing as changes and a diverging history instead of a linear history.
Any ideas or are we just being dumb?
What!
The!
Weren't we all complaining that the #Xcode console would be nicer if it detached for #debugging?
What about using Terminal?
I did not notice this setting, ever!
Finally took the time tonight to start reporting this heisenbug that's been plagueing me for months with intermittent "fake 404 error" sync failures on one of my @EvolutionGnome Google calendars, but I'm not sure yet how meaningful my gathered observations will be so far. I hope the #debugging logs I have gathered will shed a better light on this.
Anyone else experienced something like this with recent #GNOME versions? https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/475
The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'
— Isaac Asimov
Nice, spent the last two hours #debugging an upstream #dependency issue, only for the issue to be “yanked” upstream. Thankful, but dang does my head hurt!

#debugging tfw linux comes with worse / less USB serial drivers than macOS… 😇
Reported this #Firefox issue where embedded videos on some news sites like #Bloomberg and #LaPresse don't play on some computers, while they do on others. All previous reports from others ended up with "Oh it started working now", whereas I've been seeing this issue consistently for years. Smells like a Higgs-bugson, hopefully this time #debugging goes to fits full extent. https://bugzilla.mozilla.org/show_bug.cgi?id=1830627
🔥 Did you know that Ray has a handy `pass` function to easily inspect return values (and more)?
More info: https://myray.app/blog/1-inspecting-the-return-value-of-a-function-using-ray
#php #debugging

🦀 Rust, Modern Solutions to Modern Problems
— Code Persist
#Rust #Safety #Debugging
https://m.youtube.com/watch?v=pNWKI6xtveQ&feature=youtu.be
autometrics-rs 0.4: Spot commits that introduce errors or slow down your application https://fiberplane.com/blog/autometrics-rs-0-4-spot-commits-that-introduce-errors-or-slow-down-your-application #rust #debugging #performance
autometrics-rs 0.4: Spot commits that introduce errors or slow down your application https://fiberplane.com/blog/autometrics-rs-0-4-spot-commits-that-introduce-errors-or-slow-down-your-application | https://lobste.rs/s/yyukak #debugging #performance #rust
Dear #Fediverse
I'd like to showcase your debugging ducks to my Syntax Error newsletter readers.
Send me pictures and short descriptions or stories about your ducks and why they are awesome ❤️
#debugging #software #development #developer #webdev #webdevelopment
Syntax Error is a monthly newsletter about #debugging for #software #developers.
You can find the first three newsletters from the archive https://www.syntaxerror.tech/page/2/ and subscribe to get all the new ones directly to your inbox or RSS reader.
And hey, why not tell your colleagues or dev friends about it while you're at it, odds are they don't know about it yet.
「 Even the error messages that the compiler creates when the coder makes a mistake are unusually solicitous; they describe the error, and also politely suggest how to fix it.
“The C and C++ compiler[s], when I make mistakes, make me feel like a terrible person,” Shamrell-Harrington says with a laugh. “The Rust compiler is more like it’s guiding you to write super-safe code.” 」
#Rust #Debugging #DX
「 The software inside devices like elevators is often written in languages like C++ or C, which are famous for allowing programmers to write code that runs very quickly and is quite compact. The problem is those languages also make it easy to accidentally introduce memory bugs—errors that will cause a crash.
Microsoft estimates that 70% of the vulnerabilities in its code are due to memory errors from code written in these languages 」
— @techreview
#Rust #Debugging
Anyone have any tips for #debugging a #HomeKit #doorbell/camera? When I put the doorbell and a #HomePodMini on my wife’s #iCloud account, they work. When I put them on my #iCloud account, the doorbell says “not responding”. Tried multiple resets and logging out of my iCloud account.
git bisect start
git bisect bad
...checkout an older revision which you can prove shows the bug isn't there:
git bisect good
Git then splits the difference. Every build you mark good or bad automatically brings you to the middle revision between working or not until you find the culprit. Brilliant. #git #programming #debugging
git-scm.com/docs/git-bisect
Improving messages and types in GDB’s Python API https://blog.trailofbits.com/2023/04/18/a-winters-tale-improving-types-and-messages-in-gdbs-python-api/ | https://lobste.rs/s/mbsftm #debugging
Okay, I found the non-determinism issue! Get ready for a deep dive:
Just as with Apple's "natural scrolling direction", there're really two ways of thinking about this issue and IMHO it's not even a bug as such, just me prioritizing a different aspect of the whole piece: realtime performance (since this is animated)
The "offending" code to update a single cell/bubble is attached, see if you can spot the issue...
It took me little while, but as predicted, it _is_ timing related:
The animation code is trying to be "best practice" (aka using the highres timestamp supplied by requestAnimationFrame(), computing the delta time to the previous frame and so be adaptive to any dropped frames or unexpected delays, e.g. due to window resizing, garbage collection or any other external factors). Because of that, each bubble is updating using realtime deltas and hence the animation WILL sooner or later become non-deterministic in terms of individual bubble movements (but nothing else!).
Btw. The official MDN docs[1] are having an explicit warning about making sure to use the realtime timestamp future-proofing animation code (see 2nd screenshot)
Everything else in #Bubblemania, i.e. the layout, the positions, shapes, colors & texture assignments of the bubbles, all that _is_ fully deterministic. I just verified this (several times) by serializing the entire state to JSON and then diffing results. The issue is (real)timing!
This is useful food for thought though in general (and for others): There are only two choices for _any_ such generative, realtime animated project:
1) Locking the frame rate to ensure a "theoretical determinism", but eventually having to irrevocably accept a change of character of the entire piece in the future (e.g. due to higher or uneven display frame rates, e.g. more common 120Hz screens in a few years or low powered machines with frequent dropped frames on the other side of the spectrum...)
OR
2) Prioritizing realtime animation and accepting the fact that minute/unimportant details might/will become variable (e.g. in this case, bubbles bobbing in a non-guaranteed order)
IMHO you can only pick one of these and it seems I picked the wrong one... (just like with Brexit, you can't both eat your cake and have it too! 😉)
What would you have done/prioritized? Which aspect is more important here (really)?
[1] https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
I just clicked "Send" to send out my third Syntax Error newsletter to 162 email subscribers.
In this month's newsletter I talk about rubber ducks, #rustlang and share a debugging story all the way from the 1980s.
If you're a #softwaredeveloper who wants to become better at #debugging and solving problems, check out the newsletter and subscribe if you haven't yet!
#webdev #webdevelopment #software #bug #bugs #computers
https://www.syntaxerror.tech/syntax-error-3-who-let-the-ducks-out/
Unwinding the stack the hard way https://lesenechal.fr/en/linux/unwinding-the-stack-the-hard-way | https://lobste.rs/s/6hy0dt #debugging
Frank is one part of my trusted #rubberduck squad. Frank joins me in the office and with his binoculars can help me spot bugs from afar.
If you need help with your #debugging struggles, head over to https://www.syntaxerror.tech/ and subscribe to my monthly debugging newsletter!
The 3rd issue hits inboxes and RSS readers around the world next Monday.
Sharing it with your colleagues and dev friends is much appreciated!
(The photo is staged, I don't actually work on Linux kernel)
Autometrics: an open source, developer-first observability framework that writes queries for you https://fiberplane.com/blog/autometrics-a-developer-first-observability-framework-that-writes-queries-for-you | https://lobste.rs/s/qxvin8 #debugging #performance
A distributed time-traveling debugger for Spritely Goblins
https://spritely.institute/news/introducing-a-distributed-debugger-for-goblins-with-time-travel.html
A distributed time-traveling debugger for Spritely Goblins https://spritely.institute/news/introducing-a-distributed-debugger-for-goblins-with-time-travel.html | https://lobste.rs/s/jyn2vy #debugging #distributed #lisp
Debugging an x86 application in Rosetta for Linux https://sporks.space/2023/04/12/debugging-an-x86-application-in-rosetta-for-linux/ | https://lobste.rs/s/uhtntt #debugging
“What’s it called when you fix a bug at your current job that you accidentally created when you were at your previous job?” — Andrew Clark
_____
#Job #Development #WebDevelopment #WebDev #Work #Debugging #Bug #Quote
Hey #RustLang #debugging help needed I think. So I’ve got a very large number of nested iterators and somewhere one of them is seemingly introducing an off by 4 error. Any ideas on how to best debug such a deep iterator chain (iterator.next calling an inner iterator.next and possibly doing some stuff)?
I know where it’s good and where it’s bad but the nature of audio programming makes it really hard for me to find the cause.
🎉 Exciting news for developers!
Xdebug AI is here to revolutionize bug fixing!
🤖🐞 This new addition uses AI to learn from your past mistakes and automatically create patches to fix bugs.
Say goodbye to tedious manual work and hello to faster and more accurate bug fixing!
🎉 Xdebug 3.2.1 Released!
🐞 This is a bug fix release that addresses problems with recognising the `xdebug.mode` setting in threaded environments, and another few issues.
🔗 https://xdebug.org/announcements/2023-03-21
🐘 @Xdebug
It's a bad day for the bugs: Syntax Error #2 just went out!
This month's issue talks about printing as a debugging tool and about Elm's error messages and debugging your Elm code.
#debugging #newsletter #webdev #webdevelopment #elmlang #software #developer #development
https://www.syntaxerror.tech/syntax-error-2-print-it-like-a-boss/
MacOS: we've got dtrace!
Also MacOS: you tried to run `iosnoop` and `ps` at the same time, have a beachball, also you can't start apps anymore.
#macos #Darwin #debugging
Why did a duck cross the street? To help you fix a bug.
My duck jokes may be bad but the newsletter is great.
Syntax Error's second issue hits inboxes and RSS readers this Friday. Sign up now at https://www.syntaxerror.tech/ so you don't miss it!
The best way to debug an AI prompt? Just ask the AI. This is just insane. I’m tweaking the @IceCubesApp prompt for hashtags because ChatGPT API try to search for context and then just invent a new Toot instead of just discarding and not adding any Hashtags if there is not enough context. #AI #debugging #IceCubesApp #ChatGPT #mastodon
What a good debugger can do https://werat.dev/blog/what-a-good-debugger-can-do/ | https://lobste.rs/s/uo3sck #debugging #programming
although in one instance it seemed to hit an infinite loop. a function that I knew triggered only a few times when running in production ran dozens of times (I finally skipped it) when it had a breakpoint set.
You know when adding a breakpoint during #debugging stops the rest of the #code from completing execution?
Yup, just what I want to spend time on.
(to be fair, I think it's actually slowing down the code...if I were to wait long enough it might complete...)
“Walking around and thinking about a problem is underrated. It can be much more productive than sitting in front of a computer and typing code. Coding is easy once you’ve figured out what to code.” — Ryosuke Niwa
_____
#Development #WebDevelopment #WebDev #Frontend #Backend #Programming #Coding #ProblemSolving #Debugging #Productivity #Quote
#ICYMI Be sure to check out our latest livestream with @burkeholland and @notesofbarry.They demo how easy #vscode makes it to learn and use #COBOL and #RPGLE on #IBMi with language integration, #debugging and sandbox mode! Watch it here 📽️
https://youtube.com/live/SvTZoFa5UO8
:sys_twitter: https://twitter.com/code/status/1628493660458196993
#Debugging is a skill but also a mindset. Juhis has some very good advice on the latter.
💬 @hamatti: https://mastodon.world/@hamatti/109878987529272407