News for hackers. Stuff that matters.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @09:46AM (#21844493)
Hey, I'm Henri, founder and lead developer of BugJail. I just noticed traffic spiking and came to see what is going on :)

The landing page wasn't quite ready for spotlight, but such is life :)

All feedback is highly appreciated, no matter how brutal.

And if you have any questions, feel free to ask!

Re:BugJail: New Java debugger – debug across time with mouse by lallysingh on Friday December 20, 2019 @11:42AM (#21845401)
I think you need to make the experience more concrete.

On the visceral side: put up some example videos of use. If you can't do it to the level of polish you like, get someone else to do it for you as an unofficial one. IntelliJ is already slow, and I'm worried about event-recording debuggers being only useful for small programs -- larger ones eat up too much RAM and cpu overhead to be tractable.

On the power side: show some sophisticated use cases using real libraries and real problems to fix. What stuff can I find out directly that I can't easily do in IntelliJ?

Can I directly query the DB? Can I use those queries' results in regression tests?

When I read the page, I thought "Oh, like the valgrind family of tools for Java, nice." So perhaps some pre-baked validations using the tech you've built could be useful.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @03:10PM (#21847012)
Yep, I think video would be a perfect fit.

About performance impact and program size: BugJail can be used also with hardcore programs, like databases and compilers, where event based record-and-replay debuggers typically struggle. There's still significant performance hit, around "twice as slow", but it won't be orders of magnitude slower.

Also, BugJail is tested with large applications. For example one test is startup sequence of Eclipse, on 5 year old box with 32GB. The result is ~700 million rows in database, in ~30 seconds. It does consume all memory, and your workstation will scream for mercy, but it gets there :)

Direct DB query is not available in current beta, but it is partially implemented in dev version: it shows the results, but there is no navigation from the query results to CallTree, Source code view etc. So: coming, but not yet.

I hope I answered your questions at least partially? It's 7AM in the morning, after one of the hottest days in Australian history, and a surprise appearance in HN front page, so I might not be quite the sharpest tool at the moment :)

Re:BugJail: New Java debugger – debug across time with mouse by hinkley on Friday December 20, 2019 @04:58PM (#21847735)
From what I understand, some time sequence databases use some sophisticated compression techniques. Are you there already or is that on the roadmap?

I think it would be kinda cool in a way to go back to dual-machine debugging but I’m not sure everyone else would agree with me.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @05:38PM (#21847996)
There's fair bit of compression already, but actually I haven't done that much industrial spying into time-series databases, good idea, thanks.

Also, I've tested dual machine debugging with BugJail, as part of spike towards CI/QA/SIT/UAT/Pre-Prod use. It works okey-ish but the (crappy 1GB) network became bottleneck and it was slower than single box.

Re:BugJail: New Java debugger – debug across time with mouse by lallysingh on Saturday December 21, 2019 @03:55PM (#21853317)
If 1GB wired doesn't work well, WiFi will be worthless. Compression is a really good idea
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Saturday December 21, 2019 @04:26PM (#21853452)
My "Fair bit of compression" was massively simplified: there isn't one true canonical "compression", but dozen different places and ways where and how to compress.

BugJail does compression around storage layer, but nothing before the network hop from capturing agent to processing server.

And fully agreed of course; when BugJail graduates to CI/QA/SIT/UAT/PreProd use, it will need compression before the network hop. But that is some time away. Currently the agent and server run in same box, and compression between them has negative net effect (compression uses more CPU than what shifting around less data saves).

Re:BugJail: New Java debugger – debug across time with mouse by hinkley on Sunday December 22, 2019 @02:05AM (#21855726)
statsd might be a good example there. Local coalescing before reporting upstream.

Basically they didn’t make the client smart, they made a proxy and spam loopback.

Re:BugJail: New Java debugger – debug across time with mouse by touisteur on Friday December 20, 2019 @02:27PM (#21846724)
> If you can't do it to the level of polish you like, get someone else to do it for you as an unofficial one.

Yes, have one (or several) customer(s) write a blog (that you can help proof-read, add links to documentation, your example database, your reference guide...) on one or two features. "here's how I did it before with eclipse/intellij, how it was long and painful and manual and involved and xxxx. Now with bugjail I can do this with xxx and xxx". A blog I can read and you can polish bit by bit, asynchronously. Video can be hard to follow, copy-paste, with good and clear simple English, or you could caption but then again, lots of energy to spend!".

Maybe offer some incentive to this (those) customers of some kind (5 year free support, a number of enhancement tickets...).

The best way to demonstrate (I feel) is sometimes a happy customer with complex but satisfied needs.

Re:BugJail: New Java debugger – debug across time with mouse by thenewnewguy on Friday December 20, 2019 @10:19AM (#21844761)
> All feedback is highly appreciated, no matter how brutal.

Some complaints about the linux packaging:

The website mentions a license, but doesn't appear to provide a link to one, and my .deb download didn't come with a license either.

You're redistributing Oracle Java for some reason? Might want to just mark that as a dependency, and I hope you have a license for that.

You have two copies of libEGL.so for some reason.

Sometimes the directory is BugJail and sometimes it's bugjail.

I don't use a distro that takes rpm or deb packages, maybe there could be a .tar.gz download for us?

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @10:51AM (#21845001)
Thanks for the feedback. Quick replies:

- The Linux packaging will be re-done from scratch (previous beta had completely re-done packaging for Windows and Mac, re-done Linux packaging coming in next beta) and I'll make sure all these get fixed.

- The license is displayed in the launcher screen (before you click "Enter BugJail"), but i'll make it also available online, good point, thanks.

- Redistributing Oracle JRE as part of BugJail package is done exactly according to their redistribution terms, no problems there.

- The reason for redistributing JRE has more to do with Windows and Mac, where 'marking it as dependency' is not an option. I'll reconsider how to do this when the Linux packaging is rewritten.

- Would AppImage packaging work for you? What distro do you use?

Re:BugJail: New Java debugger – debug across time with mouse by Asooka on Friday December 20, 2019 @12:31PM (#21845796)
AppImage would be even worse, as it's a fairly new technology and not all that well integrated. I am an ArchLinux user and generally it's easiest if the software comes as a tar.gz with installation instructions and list of dependencies. Those of us using alternative distros, i.e. not fedora, debian or ubuntu are most comfortable with getting a simple archive and adapting it to their distro. Trying to make an installable package for us only leads to frustrations for everyone.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @12:40PM (#21845860)
I'm actually half-way migrating from Kubuntu to Arch..

But sure, I'll get .tar.gz done.

And if you'd like to get notified when done, just send your contact info (my email is in the 'contact' page). Thanks for the feedback!

Re:BugJail: New Java debugger – debug across time with mouse by thenewnewguy on Friday December 20, 2019 @02:05PM (#21846582)
Good to hear, I wish you success.

I understand on Windows/Mac you have to package the JRE, but I'd recommend considering using the distro for that functionality on linux - it's generally frowned upon to re-package stuff in the official repos.

I think an AppImage would generally be worse, I'd rather be able to use my system's JRE and libraries. I'm on Arch, so if you provide an archive of the application we can work with that. If you really want to go above and beyond for Arch users you could make and publish an AUR package.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @03:15PM (#21847044)
Thanks, I'll do as you recommend: JRE as dependency and add .tar.gz packaging. And shoot me an email if you'd like notification when done(my email is in the contact page).
Re:BugJail: New Java debugger – debug across time with mouse by cryptonector on Friday December 20, 2019 @12:58PM (#21846023)
Is this like DTrace/BTrace with lots of enabled probes married to a database?
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:59PM (#21846545)
If you also add GUI after the database, then it mostly is :)
Re:BugJail: New Java debugger – debug across time with mouse by cryptonector on Friday December 20, 2019 @06:23PM (#21848279)
Ah, good, thanks for clarifying!

This isn't quite time travel, and it's not quite too expensive, and so on. Well, it's a nice idea, for sure, and it needn't be Java-specific either -- it generalizes.

Of course, you might need enormous amounts of memory or storage if you want to observe a busy process for a long time, but presumably one would only do use this tool for brief periods.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @06:48PM (#21848424)
BugJail doesn't do currently line/statement level debugging, but it already captures all the information required for full "time travel" debugging. So, coming someday.

Also, BugJail is designed so that in normal use (webapps etc) it writes fast enough to database and never runs out of memory. Though, hardcode programs like databases and compilers exceed that, and currently don't buffer to disk, but crash it hard..

If you configure BugJail to capture only your own code/packages (--primary option) the disk usage is not that bad either. If you don't, you'll burn in the magnitude of ~10MB per second.

Give it a try, and let me know how it goes?

Re:BugJail: New Java debugger – debug across time with mouse by palerdot on Friday December 20, 2019 @11:06AM (#21845124)
> Next is BugJail for Android, with beta starting late 2018, hopefully.

Why does the website showcase outdated content? Personally, I will drop off at this point. You might have put this message pre 2018, but you should keep the landing page up-to-date.

Also, as one of the other commenters pointed out, you should spend some extra bucks and proof read the landing page. Sentences like "And cheap perpetual license after that" does not go well for most customers who are willing to shell money for a product. If your product is worth it, people will pay for it.

Tech is just a part of the equation. If you don't take care of other stuffs like messaging you are sending wrong signals to your potential users.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @11:51AM (#21845468)
That 2018 is a really unfortunate typo, but I feel hesitant to deploy fix now as the traffic is heavy.

I agree on all points, and have no excuses; the landing page wasn't ready for being surprise featured in HN.

Many thanks for your feedback & apologies that I provided such a crap experience.

Re:BugJail: New Java debugger – debug across time with mouse by proc0 on Friday December 20, 2019 @02:14PM (#21846647)
I think JS should be higher on the priority list, considering the demand to effort ratio (I'm thinking it's probably easier to implement for JS than Java). I would guess that it would also be easier to host it and load JS on the fly to debug online. Just my 2c, will try the Java one anyway to test it out.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @02:28PM (#21846726)
I totally agree on the demand, but on the effort side the dynamic nature of JS makes it really tricky to do right. Thanks for your comment & let me know how it goes!
Re:BugJail: New Java debugger – debug across time with mouse by thu2111 on Saturday December 21, 2019 @02:53PM (#21853024)
Take a look at GraalJS/Truffle instrumentation. It lets you easily run JS and even NodeJS on the JVM with per statement instrumentation handled at the engine layer. So it should make it very easy to add the code you need and the compatibility with modern js is great.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Saturday December 21, 2019 @05:08PM (#21853620)
The critical problem is not the instrumentation, but the way how BugJail works: it doesn't dumb the raw events to disk, instead it reconstructs relational model of the program execution. This requires resolving raw low level events against schema of types/methods/fields/etc. With JS the schema is dynamic, so now the already hard 'reverse-engineering' has moving target. Not impossible, just hard.

And thanks for the pointer to GraalJS/Truffle, I'll have look and perhaps that provides great way for doing the instrumentation side.

Re:BugJail: New Java debugger – debug across time with mouse by j15t on Friday December 20, 2019 @11:54AM (#21845490)
Hi, I'm interested in program execution state and the different ways it can be represented/modelled. The "relational model" you describe sounds very interesting. Do you have a technical whitepaper on this topic, or perhaps some third-party literature that has guided you?
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @12:10PM (#21845635)
Neither actually. But if there's interest for the technical side, I could perhaps write a blog post?
Re:BugJail: New Java debugger – debug across time with mouse by touisteur on Friday December 20, 2019 @02:33PM (#21846748)
I share the same interest as parent, a white paper or detailed blog describing the vision and how to use it would be amazing. But then it might be a bit 'secret sauce'... At one time or another you need to explain or demonstrate your killer features in a way that people will react : 'hey I've always wanted that but didn't know how to ask for it!'.

Good luck, it seems with all the critics with the copywriting on your landing page, you've piqued the interest of a lot of people. I hope you'll feel encouraged by this.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @03:22PM (#21847086)
Alright, I'll add writing blog post about the implementation to my TODO list. And my feeling is closer to exhausted than encouraged, I was just going to bed, after day of 45c heat, when the half-finished landing page hit HN front page, and it's now 7AM :)
Re:BugJail: New Java debugger – debug across time with mouse by j15t on Sunday December 22, 2019 @01:59AM (#21855710)
Yes a blog post would be terrific, thanks.
Re:BugJail: New Java debugger – debug across time with mouse by shujito on Friday December 20, 2019 @02:56PM (#21846911)
First of all, this looks promising

I have just one question, what will the price be?

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @03:18PM (#21847060)
I don't know! How much would you pay for it?

However, I can promise that the pricing model will be perpetual license based, NOT a subscription that "only costs you one cup of coffee per day"..

Re:BugJail: New Java debugger – debug across time with mouse by jpgvm on Friday December 20, 2019 @10:26PM (#21849396)
I would suggest something along the lines of YourKit pricing which seems to be industry standard for the most part.

Also their personal license which isn't advertised heavily is $99/yr which allows for commercial use but must be paid for by the individual rather than a business entity. I like this license because I like to take my tools with me and doesn't make me beholden to purchasing/procurement departments of the companies I do work for.

Re:BugJail: New Java debugger – debug across time with mouse by jsjohnst on Sunday December 22, 2019 @09:18AM (#21857213)
I personally like this idea too, for much the same reason as you.
Re:BugJail: New Java debugger – debug across time with mouse by Hermitian909 on Friday December 20, 2019 @04:17PM (#21847442)
If this can replace a standard debugger I wouldn't even blink at a $100 dollar price tag.

I'd want testimonials and videos of it in action, but if anyone I trusted vouched for it that price would be a no brainer for me.

Re:BugJail: New Java debugger – debug across time with mouse by w0utert on Friday December 20, 2019 @09:49AM (#21844524)
Since you asked for it ;-)

>> All feedback is highly appreciated, no matter how brutal.

You should really get a native English speaker to proofread and correct the website. The content itself is fine but there are so many spelling & grammar errors in the text that it really starts to detract, and it honestly affected my perception of the quality of your software in a bad way.

Also not a big fan of the long-scroll style landing page in general, but that seems to be the flavor of the day now. I think some structure (index, menu) would make it a lot easier to navigate to the relevant information, right now reading top to bottom I had no idea what kind of other information could/would/should have been lower down the page.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @10:00AM (#21844611)
Yep, absolutely agreed. The landing page is work in progress and hasn't been proofread. Didn't except it to end up in HN :)

Apologies for typos and grammar, and I hope you can also brutally criticize everything else beyond the surface! :)

Re:BugJail: New Java debugger – debug across time with mouse by otoburb on Friday December 20, 2019 @10:11AM (#21844705)
>>I hope you can also brutally criticize everything else beyond the surface! :)

I recommend removing the word "cheap" from your landing page. I understand the sentiment (and love it), but what may be "cheap" in one part of the world is likely "expensive" in another. It also cheapens (no pun intended) your value proposition from an enterprise perspective. Be confident and drop the word.

Also, perhaps in some fine print (or even better - a clearly visible and simple explanation) defining the scope of the perpetual license -- limited to +K (where K ≤ 0) major software versions or all future releases (K = ∞)?

Re:BugJail: New Java debugger – debug across time with mouse by evmar on Friday December 20, 2019 @11:43AM (#21845415)
"cheap" in English means both "low cost" and also "low quality". To convey what I think you want to convey you could use the word "inexpensive" or "low cost" (but I also agree with the parent comment's advice).
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @10:17AM (#21844747)
Again fully agreed, thank you.

What do you think would be reasonable price for perpetual license?

Re:BugJail: New Java debugger – debug across time with mouse by otoburb on Friday December 20, 2019 @10:48AM (#21844984)
You need to do a market analysis yourself as developer tools are not my area of market expertise. As a general strategy, given this is a new tool you might want to start with just two dimensions/factors: introductory vs. long-term (to drive adoption), and consumer vs. enterprise.

For the purposes of answering your question in the short-term: you might end up with a perpetual license single-developer price knowing that this initial set of customers will be innovators and an "investment" that will be on your books for quite some time. You could even time or quota-limit if you're looking for a specific growth trajectory and initial burst of revenue.

Given that this is perpetual licensing (and again - you need to decide whether this will be for all versions forever, or limited to +K major versions), you need to balance 12-18month runway (cost-feature) planning against any margin you're hoping to generate (maybe none if you're aiming for ramen profitability).

Feel free to reach out if you want to discuss further.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:29PM (#21846329)
I hope I didn't (again) express my self badly...

Of course I'm not expecting to be spoon-fed with a ready made pricing model, but was just trying to get overall sentiment..

You make a lot of great points, and this is one area where I definitely need help, so thank you for your offer. I'll get in touch after I've survived today :)

Re:BugJail: New Java debugger – debug across time with mouse by jsjohnst on Sunday December 22, 2019 @09:28AM (#21857258)
Somebody else suggested this already, but I’d probably do something like the following:

$100 - personal license, must be bought by an individual (not company), but can be used for commercial purposes. Best effort only support, pushing folks to use a support forum.

$200/seat - business license version of above, but including email support, just without an SLA.

$400/seat or $15/seat/month - enterprise license, includes priority support.

Based on experience, providing support is the most “expensive” and time consuming portion, so make sure you are pricing high enough to cover that, especially with perpetual licenses.

Re:BugJail: New Java debugger – debug across time with mouse by derefr on Friday December 20, 2019 @11:17AM (#21845210)
Keep in mind what this tool replaces. Sure, most obviously, this tool might "be" a debugger, but if by using it you suddenly don't need separate static analysis/reverse-engineering tools in your debugging workflow, then it's in competition with those tools, too. Imagine everything you'd have to buy+install in order to get the same effect as this tool, and then charge more than that (because probably there's at least a few use-cases where, without this exact tool, you just can't do it at all.)
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:52PM (#21846495)
Thanks, really great point. BugJail actually started life as internal tool for dynamic analysis, not for debugging. The longer term vision is merging of dynamic and static analysis, so not exactly, or only, "better debugger".
Re:BugJail: New Java debugger – debug across time with mouse by ccleve on Friday December 20, 2019 @11:02AM (#21845090)
Have a look at other developer tools like IDEs (IntelliJ) or profilers (YourKit). Look at what kind of value you provide relative to what they do.

You should definitely charge for upgrades. Make the license for a particular version perpetual, but no upgrades after a year unless they pay again.

Most of your money will probably come from large corporate licenses. Think about how to structure them.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:20PM (#21846215)
Thanks. My current plan is pretty much exactly that: perpetual license for $ X including 1 year of updates, then $ 0.5X for additional year of updates/maintenance.

The main thing I'm uncertain about is the value of X :)

Re:BugJail: New Java debugger – debug across time with mouse by nvr219 on Friday December 20, 2019 @11:19AM (#21845220)
$100
Re:BugJail: New Java debugger – debug across time with mouse by lallysingh on Friday December 20, 2019 @11:36AM (#21845356)
$200 for large companies (revenue over $1MM), $100 for smaller + devs. Maybe $50 for students if you want to spoil them in their youth.
Re:BugJail: New Java debugger – debug across time with mouse by jsjohnst on Sunday December 22, 2019 @09:31AM (#21857275)
Many legal/finance teams hate licensing costs based on revenue numbers. I’d suggest avoiding that and instead tying something of value to larger companies to the higher priced license, like priority support.
Re:BugJail: New Java debugger – debug across time with mouse by blobbers on Friday December 20, 2019 @12:24PM (#21845740)
Nobody sells perpetual licenses anymore.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:13PM (#21846144)
Well, I will :)

I'm doing this mainly to help other developers, so I don't care that much if my monthly recurring revenue or whatever doesn't please Sandhill Road.

Re:BugJail: New Java debugger – debug across time with mouse by barrkel on Friday December 20, 2019 @03:04PM (#21846965)
Tech that disappears because it isn't profitable enough (or at all) is even worse. A successful business model is in everyone's interest. Don't unilaterally rule anything out, look at it rationally.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Saturday December 21, 2019 @09:04PM (#21854659)
I considered this overnight. I was naive.

If the goal is to help as many developers as possible, then being profitable and/or well funded makes achieving that goal easier, through hiring more employees and developing better product faster. Which in retrospective sounds obvious.

I'll still keep perpetual license as option, but stop being arrogantly non-commercial.

Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @05:11PM (#21847831)
Very sensible viewpoint, thank you. Perhaps perpetual licenses and subscriptions could co-exist as alternatives, and customers can choose whichever they prefer.
Re:BugJail: New Java debugger – debug across time with mouse by sofaofthedamned on Friday December 20, 2019 @10:28AM (#21844823)
Happy to proofread and fix it in a PR, looks like a nice tool.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @12:09PM (#21845619)
Thanks, actually I'd gladly accept your offer! Seems I really need help with my English :) My email is in the contact page :)
Re:BugJail: New Java debugger – debug across time with mouse by mlyle on Friday December 20, 2019 @12:16PM (#21845682)
He should really remove the political content too. Yes, many of us think Trump is an asshat, but why alienate a potential customer who disagrees? I think it's an attempt to be edgy/cool (along with "Frigging") but I think it risks hurting more than it helps.
Re:BugJail: New Java debugger – debug across time with mouse by HenriNext on Friday December 20, 2019 @01:56PM (#21846520)
Thanks for the feedback. I'll follow your advice.

It probably doesn't matter, but the third screenshot wasn't any kind of planned attempt of being edgy/cool. Just another 16h coding day ending in bit more lighthearted way.