Masthash

#debugging

blake shaw
4 hours ago

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

#scheme #lisp

Normally, I feel excited and happy when I finish a new coding feature. But tonight...meh. Not sure why.

#cpp #debugging

jbz :catjam:
2 days ago

🐍 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

Allan Svelmøe Hansen
3 days ago

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*

#programming #debugging #tgif

jbz :catjam:
4 days ago

"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/

Shai Almog
4 days ago

My talk at DevDays & DevOps Pro Europe 2023 is now available:

https://www.youtube.com/watch?v=sXRt7EAQv4A

#java #tutorial #debugging #debug #tools #video #conference

Shai Almog
6 days ago

I will be speaking today (virtually) at the Stockholm JUG. Join me to learn about debugging

https://www.meetup.com/stockholm-jvm-jug/events/293554834/

#java #debug #debugging #tutorial #meetup

Bob Belderbos
1 week ago

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

#python #django #debugging

Loki the Cat
1 week ago

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

https://developers.slashdot.org/story/23/05/27/2034233/python-312-brings-new-features-and-fixes?utm_source=rss1.0mainlinkanon&utm_medium=feed

jakob reading solarpunk
1 week ago

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...

#software #softwareengineering #debugging #fallacy

Programming Quotes
1 week ago

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

#bugs #debugging

Я заметил, что быстрее всего получается кому-то дебажить, когда человек делает все, что я говорю, даже если это звучит глупо. Иногда, когда кто-то уверенно говорит, что "нет, тут все нормально" оказывается, что нет не всё нормально. Хотя, возможно я начинаю слишком наседать в желании найти причину бага. Но стоит признать, иногда я бываю не прав в большинстве случаев, но это помогает мне идти вперед в поисках бага.

#программирование #debugging #coding

Geob-o-matic
2 weeks ago

#Debugging #mTLS issue is the worst

Programming Quotes
2 weeks ago

The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'

— Isaac Asimov

#debugging

Jeff Fortin T.
2 weeks ago

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

Gru (from the Minions) explains the Nautilus search performance issue:

1. Searching remotes results in bad performance.
2. Let's allow the user to search only local do avoid that bad performance
3. User gets bad performance because of the checking
4. See step 3.
Programming Quotes
2 weeks ago

When debugging, novices insert corrective code; experts remove defective code.

— Richard Pattis

#debugging

Programming Quotes
2 weeks ago

Code smells.

— Martin Fowler

#bugs #debugging #refactoring

jbz :catjam:
3 weeks ago

「 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

Dominik Sust
3 weeks ago

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

akira
3 weeks ago

@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

Juhis
3 weeks ago

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!

#debugging

Juhis
3 weeks ago

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.

#webdev #programming #coding #developer #dev

A yellow illustrated rubber duck on a black background with large text Syntax Error next to it

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.

#GStreamer #FFmpeg #VLC #Programming #OpenSource #Debugging

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 :-)

3 weeks ago

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

AskUbuntu
3 weeks ago
John Bokma
3 weeks ago

Inspecting coredumps, Plotting, and Filtering With PiHole and Podman

#debugging #python #networking

👉 Please retweet if you ❤ Plurrrr. Thanks! 👍

https://plurrrr.com/archive/2021/09/21.html

John Bokma
3 weeks ago

Ahrefs Webmaster Tools, When fonts fall, and long lines in Emacs

#debugging #tumblelog #css #emacs

👉 Please retweet if you ❤ Plurrrr. Thanks! 👍

https://plurrrr.com/archive/2020/09/30.html

Jeff Dwyer
3 weeks ago

Excited to share what we've been working on https://prefab.cloud/blog/dynamic-log-levels/ #ruby #debugging

Dinosaur Developer
3 weeks ago

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

Freelock
4 weeks ago

#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...

jbz :catjam:
4 weeks ago

「 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?

#git #debugging

Christian Tietze
1 month ago

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!

Jeff Fortin T.
1 month ago

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

Programming Quotes
1 month ago

The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'

— Isaac Asimov

#debugging

Jonathan Peacher
1 month ago

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!

Toy Story Meme: Buzz telling Woody “Dependencies, Dependencies Everywhere”.
/dave/null 🥃💻
1 month ago

#debugging tfw linux comes with worse / less USB serial drivers than macOS… 😇

Jeff Fortin T.
1 month ago

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

freekmurze
1 month ago

🔥 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

jbz :catjam:
1 month ago

🦀 Rust, Modern Solutions to Modern Problems
— Code Persist

#Rust #Safety #Debugging
https://m.youtube.com/watch?v=pNWKI6xtveQ&feature=youtu.be

Juhis
1 month ago

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

Juhis
1 month ago

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.

An illustrated yellow rubber duck with a distressed look on its face. Next to it, logo test Syntax Error with A and E slightly tilted from the baseline.
jbz :catjam:
1 month ago

「 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

jbz :catjam:
1 month ago

「 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

Jay Tamboli
1 month ago

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.

Hank G ☑️
2 months ago
Can I say how much I absolutely love git's bisect method? Not sure where the bug appeared?

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
Karsten Schmidt
2 months ago

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

#Debugging #Determinism #RealTime #Animation #GenerativeArt

Excerpt TypeScript source code:

/**
 * Receives `delta` time (in fractional seconds) from RAF update loop. If a
 * cell has finished its transition (internal timer = 1.0), then it'll reset
 * with `prob`ability. Otherwise, the cell updates its internal timer/phase
 * and interpolates its size. Clip planes are always re-computed.
 *
 * @param delta 
 * @param prob 
 */
update(delta: number, prob = 0.03) {
	if (this.t === 1 && probability(prob)) {
		this.r1 = this.r2;
		this.r2 = RND.minmax(...RADIUS_RANGE);
		this.t = delta;
	} else if (this.t < 1) {
		this.t = Math.min(this.t + delta, 1);
		this.r = mix(this.r1, this.r2, bounce(this.k, 1, this.t));
	}
	this.computePlanes();
}
Excerpt of Mozilla documentation about the requestAnimationFrame JavaScript function:

The callback method is passed a single argument, a DOMHighResTimeStamp, which indicates the current time (based on the number of milliseconds since time origin). When multiple callbacks queued by requestAnimationFrame() begin to fire in a single frame, each receives the same timestamp even though time has passed during the computation of every previous callback's workload (in the code example below we only animate the frame when the timestamp changes, i.e. on the first callback). This timestamp is a decimal number, in milliseconds, but with a minimal precision of 1ms (1000 µs).

Warning: Be sure to always use the first argument (or some other method for getting the current time) to calculate how much the animation will progress in a frame, otherwise the animation will run faster on high refresh rate screens. Check the example below for a way to do this.
Juhis
2 months ago

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/

Juhis
2 months ago

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!

#webdev #developer

(The photo is staged, I don't actually work on Linux kernel)

A close up of a small rubber duck next to a large screen. Screen has bunch of C code from Linux kernel.
Lobsters
2 months ago
Inautilo
2 months ago

“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

Some(void) :rust:
2 months ago

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.

Derick Rethans
2 months ago

🎉 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!

🔗 https://xdebug.org/ai

#XdebugAI #PHP #debugging #Xdebug

Derick Rethans
2 months ago

🎉 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

#php #xdebug #debugging #release

Juhis
3 months ago

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/

Viraptor
3 months ago

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

Juhis
3 months ago

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!

#debugging #webdev #developer #webdevelopment #newsletter

Thomas Ricouard
3 months ago

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

Dave Mackey
3 months ago

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.

#debugging #coding

Dave Mackey
3 months ago

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...)

#coding

Today's my birthdy and I got one of the things I asked for. A huge number of #zines from @b0rk

#linux #networking #debugging #sysadmin #programming

A bunch of zines on technical topics, such as HTTPS, git, DNS and debugging
Inautilo
3 months ago

“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

Media source: https://video.twimg.com/ext_tw_video/1628493591654850563/pu/vid/1280x720/wvx_BkT0iIH61PwY.mp4?tag=12

#Debugging is a skill but also a mindset. Juhis has some very good advice on the latter.

💬 @hamatti: https://mastodon.world/@hamatti/109878987529272407

Post by Juhis. "The ducks are out! I just sent my first Syntax Error newsletter to 141 email subscribers and who knows how many through RSS. What a way to celebrate a birthday!" Posted on 17. Feb 2023 at 9.51