shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

285
active users

#debug

0 posts0 participants0 posts today
Continued thread

More debugging stories #bug #bugs #debug

Todays second weird bug required a bit more diving into the code.

Until I started seeing hash map dropping keys unexpectedly. (Dump the keys, see the size of the iterator is going down after some transformations that shouldn't have changed the size).

In the end, go down into the Hash and the Equals implementation.

Start using a debugger, things that should not compare equals compare equals.

In the end, the following line was wrong, (copy paste issue).

let other_location = self.get_location();

I should have written unit tests, that would have caught it.

What if the output of my #z80 assembler whilst assembling was... a symbol file?

Now the stdout of assembling a program produces the symbol file of that program, that you could include in another program, giving at least some semblance of linking.

I'm doing this to avoid command-line parameters. #v80 has two. The input file name, and optional output file name. That's all, and all there ever will be.

But what if you want to pre-define symbols from the command line when assembling?

You create a file with the symbols you want and include the main source file, e.g.

```
#debug 1 ; enable debugging
.i "source.v80"
```

Now you have a finite number of configurations, not an infinite possible number of command-lines parameters.

Durr. I wrongly thought that staff users had the same resource limits as build in #openbsd . quintin-- was right I just had to increase resource limits to build #veilid . (And comment out the error message using an out of scope macro in openbsd.rs). So now I am happily in the cli (actually a #tui) but invalid contact method for bootstrap ;_;

Anyway now that I've successfully built #debug what should I try next ? @LambdaCalculus @TheGibson Sharpsign tagging-too-important-people @Wrewdison

Ok. Fun #network #debug #challenge for you. (I worked out the solution, your challenge is to work out what the cause is).

Machine a is connected to machine b, via a direct ethernet cable. On machine a it's connected to eth5. On b its eth0. A is assigned 192.168.1.1, and b is assigned .2. There is no ping. Communication doesn't seem to work.

Running tcpdump on machine a causes ping to work. But only while tcpdump is running. Tcpdump on b makes no difference.

What's the cause of this ?

Yay, finally a more decent project structure for Three.JS projects 😁

Also a debug panel will appear on each future project by simply adding "#debug" behind the URL so people can play around with the world and such

🎉 I've just released @Xdebug 3.3.0alpha2, with preliminary support for PHP 8.3.

🔗 xdebug.org/announcements/2023-

:xdebug: It also adds some functionality to xdebug_get_function_stack(), more about that later!

🐛 Uploading it to PECL didn't work, as due to an upgrade, MySQL now (finally) rejects characters that the table charset wouldn't allow, instead of just corrupting it. That took two hours to debug and fix. PECL will warn now → github.com/php/web-pecl/commit

xdebug.orgXdebug - Xdebug 3.3.0alpha2 is out!
#PHP#Xdebug#PECL