Lurker News
Hey HN my name is Thassilo, I'm a student and passionate programmer from Germany.

I want to showcase Spray, a small C debugger I've been working on for a few months now. Spray has a very simple and approachable interface. Its feature set is limited at this point, but it's already enough to tackle some basic problems. I stared to work on Spray because I was curious about how debuggers work. I am also trying to design Spray in such a way that it's easy to grasp and has a small mental overhead.
I'd love to get your feedback on Spray.
Email: d4kd (at) proton (dot) me
PS: I'm generally interested compilers and language tool chains, and I'm looking for similar-minded people to work and collaborate with. I have a few similar projects on my GitHub: https://github.com/d4ckard?tab=repositories. If you find Spray interesting, you might enjoy playing around with them too.

Comments (129) 27 threads

Earlier comments
lopkeny12ko2 replies#
What others need to understand is that, unlike the older generation, kids today have grown up in the era of easily accessible computing. Someone who is 17 today was born in the year the original iPhone was introduced. Computing literacy is not only required, it is expected from a very young age. What might have been impressive to us 20-30 years ago is not really the same as it is now.

Cool project, but as other commenters have pointed out, the self-promotion of off-putting. Don't hold on to using your age as a qualifier to make you stand out in job applications or otherwise.

vimy#
It’s the opposite. Computer literacy has gone down for gen Z, iOS and Android are too simple and locked down.

So this is very impressive at that age.

marcus0x621 reply#
Did you read the first paragraph after you wrote it? If you did, and then posted it anyway, I don’t really know what to say. But, in any case, “Computing literacy” != “wrote a debugger.”

Your post comes off more delusional (or just ignorant) than the OP ever came off as self-promotional.

white_beach#
at least it is open source unlike some lame debuggers like remedybg
bregma3 replies#
So, only self-hosted debugging on x86_64 Linux. A good start.

Now make it work for other common CPUs (aarch64, RISC-V).
Make it work for other OSes (FreeBSD has ptrace, for example).
Make sure it handles signal and thread trampolines, calls through the VDSO, and handwritten assembler that does not have function prologues. Handle C++ constructors and destructors of objects in static storage running before/after main().
Have it intercept signals. Have it follow the child or the parent after forking. Have it handle multiple threads.
Make it work with coredumps.
Make it work on core dumps from a foreign CPU architecture (big-endian PowerPC, for example).
Make it work with debug symbols in separate files from the executable.
Make it work with binaries compiled from languages other than C.
You're going to be busy for the next 20 years or so.

brancz#
I just spent ~1.5 years of my life on various aspects of debuginfos and that even just for profiling where I only need line/column information. So I feel this comment through and through.
D4ckard2 replies#
Yeah, I don't think so. It's x86_64 only, and C only too. Some points from your list make sense now, but most of it is simply not part of Spray's scope, and never has been ...
thibaut_barrere#
Not commenting on the debugger specifically, but: keep being curious & experimenting, it will go a long way :-) (I was in your shoes)
lopkeny12ko4 replies#
The point the parent commenter is trying to make is that building a general purpose C debugger is not some kind of trivial exercise that can be shipped in 6 months, and claiming to have done so is disingenuous and pompous.
thibaut_barrere#
> claiming to have done so is disingenuous and pompous.

I don't read anything that might express that?
Especially with:
>> Its feature set is limited at this point, but it's already enough to tackle some basic problems.

roadbuster1 reply#
The parent commenter doesn't need to piss on a 17 year old for sharing their work and progress. You could also take a moment to step back and reflect on this.

Continue this thread — 1 reply

owenpalmer#
> building a general purpose C debugger is not some kind of trivial exercise

Yes
> claiming to have done so is disingenuous and pompous
Nobody has claimed to do so in this situation. You are inventing conflict. Also I don't think bregma intended to be this targeting or accusatory, why are you speaking for them?

xvilka#
This is precisely what we are trying to do at Rizin[1][2]. Though the primary goal of the tool/framework is static analysis. All that portability across OSes, their versions, platforms and architectures, etc is definitely hard. If anyone is interested in these subjects, all contributions are welcome. For example, check out our "RzDebug" label, marking debugging issues[3].

[1] https://rizin.re
[2] https://github.com/rizinorg/rizin
[3] https://github.com/rizinorg/rizin/labels/RzDebug

All comments shown.