17 ms·
BugJail: New Java debugger – debug across time with mouse
- giorgioz 7y agoAs a constructive feedback on just the presentation of the landing page I think the screenshots are showing some code with theme colors that are kind of ugly. I understand this is a landing page but if you care about Developer Experience DX I'm sure you can find a theme that is better looking or inspiring.
- DailyHN 7y agoThose images aren't visible on mobile. And I was expecting much worse when I viewed them in desktop mode. Based on the stage they're at, I'd save optimizing the landing page design for the future. Though, I would put effort to better describe the problem on the landing page.
- HenriNext 7y agoThanks for the feedback. Do you mean the code syntax highlighting colors, or the dark blue UI colors overall, or both?
- ylyn 7y agoThis looks like rr or GDB reverse debugging but for Java.
- wheresvic3 7y agoFrom the main page: Isn't BugJail just a reverse debugger? No. While BugJail does have similarities with reverse debuggers it is actually quite different ...
- deleted 7y ago[deleted]
- dhlin 7y agoHave a question to rr or any replay debuging tool, does it still work if the program has database access while the replaying machine doesn't have or not have the same database?
- cfallin 7y agoYes, it records all syscall return values, so the replay doesn't actually need to perform them. This means that IO (GUIs, network accesses, etc.) shouldn't happen on replay, in general. (The replay does show stdout/stderr data, so perhaps those are special-cased?)
- wellpast 7y agoI wonder how they are able to trace and capture variable and stack state at a rate of 20M invocations — per second!? How is this possible on the JVM? (I’m aware of the instrumentation API that profilers use but I thought they had to do sampling to limit interference with program performance and they are not capturing all the data req’d for debugging either.) Anyone know?
- Liquid_Fire 7y agoPure speculation: You don't need to record everything, only enough information to reconstruct what happened later (e.g. outcomes of branches, results of system calls, etc). You can then run a post-processing phase after execution (or in parallel on another thread) to fill in the extra detail that is needed for efficiently presenting what happened.
- HenriNext 7y agoActually, the 20 million events per second is the real event count, and on top of that comes processing..
- HenriNext 7y agoThere is no single trick, just lot of hard work. If there's interest, I can write a blog post about this.
- wellpast 7y agoI would love to read this. Thank you.
- notkaiho 7y agoThe page needs an editor, stat. The grammar is _not good_. I'd be happy to do it to be fair, doesn't seem that big a job.
- HenriNext 7y agoThanks, actually I'd really appreciate your help! My email address is the contact page.
- deleted 7y ago[deleted]
- deleted 7y ago[deleted]
- lowercased 7y agoandroid debugging to start in late 2018... is there any progress on this project (bugjail in general I mean, not android)
- HenriNext 7y agoAuh crap, that is just typo, should have been 2019. BugJail is under very active development.
- carstenhag 7y agoWas also about to comment about this, haha. I'll be interested once this is android/kotlin/android studio-ready!
- lowercased 7y agothanks for responding here! reminds me of chronon. any similarity?
- netsharc 7y agoLate 2019 is right now, any time after now is really really late!
- HenriNext 7y agoI finally got the courage to deploy new version under heavy traffic, so it's mid 2020 now. No more snarky comments for half a year :)
- brian_herman__ 7y agoThis looks really good. I like the fact you can drill down and have a replay debugger with a slider! Great job! I wish it worked for python!
- wheresvic3 7y agoThis is really neat and I wish I had this around 10 years ago when I had to migrate Java apps. However, these days I rarely need to debug programs while developing - I usually use some combination of TDD with unit/integration testing and it gets the job done with the added bonus of being easy to maintain down the road. Of course if you're on a project where time to market is critical and you need to sacrifice tests, I suppose a debugger is required. But then again, you're probably not using Java either.
- bni 7y agoI don't see a conflict between using debugger and TDD. I use the debugger to set breakpoints when running my unit tests all the time. It lets me understand the code better when developing it. Also convenient when pasting in data from production into the unit test to find what is causing the bug.
- HenriNext 7y agoHey, 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!
- w0utert 7y agoSince 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.
- HenriNext 7y agoYep, 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! :)
- otoburb 7y ago>>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 = ∞)?
- lvh 7y agoSounds similar to sayid, though generalized to the entire JVM? [sayid]: https://github.com/clojure-emacs/sayid https://github.com/clojure-emacs/sayid
- bni 7y agoI find this very interesting. Can you use it integrated in IntelliJ. How about as a paid plugin?
- HenriNext 7y agoThere's no plugin yet, but definitely coming (I've been using IntelliJ almost 20 years now, so also want that integration for my own use).
- jhvkjhk 7y agoThe `direct answers` looks fascinating! Do we have some equivalent tools for c++ or python? I'm tired of step step step...
- trishume 7y agohttps://pernos.co/ https://pernos.co/ is making a very similar omniscient debugger based on rr for AOT compiled languages with DWARF info.
- ccleve 7y agoTwo comments on the website: There is some reference to a beta in 2018. Should remove that. Also, a video of the thing in use would be helpful. Put it right up at the top. Show me something I can't do now. Include specific examples.
- HenriNext 7y agoThanks, that 2018 is a very unfortunate typo, should have been 2019. And agreed, video would be great, but it takes fair bit of time away from development, so I'm undecided.
- ccleve 7y agoShouldn't take long. Google "screencast software". Record yourself: "Hi, this is Henri. Let show you how find bugs with BugJail..." Do a 3-minute video with some simple examples. Put it on YouTube and embed it in your site. If I were doing it, I'd budget 4-8 hours of work and close to zero cost.
- ctataryn 7y agoHow is this different than http://chrononsystems.com/ http://chrononsystems.com/ ?
- localhost 7y agoI would imagine that the execution logs would get rather large. Is there a way to dynamically trigger logging as well?
- HenriNext 7y agoThe execution logs (or "Captures", in our Jail terminology..) do get fairly large if you capture something hardcore, like database or compiler. For normal web/business/enterprise applications you can configure BugJail to only capture your own packages, which massively reduces the file size (and performance impact). To give concrete example of hardcore scenario, capturing startup of Elasticsearch results in about 85MB file. There is no way to enable capturing dynamically, and this is likely never going to be supported, due to the way how BugJail works (it reconstructs the program execution, so if beginning of the execution is missing, "things are not fine").
- baud147258 7y agoNo Java 11 support? I was interested in giving it a try after the holidays, since it look like it would be a good tool for the type of bugs we have. I think it could be a big barrier to adoption, considering how Java 8 is EOL.
- HenriNext 7y agoYeah, Java 9+ is on roadmap for next beta. When the previous major beta was released there was one dependency that didn't support Java 9 and locked everything to 8. If you'd like get notified when Java 11 support is ready, you can just send one line ping email (my email address is in the 'contact' page). Many thanks for the feedback!
- aarbor989 7y agoI tried using it and my first impression is that it's pretty difficult to use for a webapp (or maybe just specifically a Spring application since there are a ton of added proxy classes) without the ability to search. You need to know exactly which thread accepted your http request and then dig your way down the call stack to find your method invocation. You should be able to search for your method invocation and then go back up the call stack from there. Other than that, seeing exactly how long every single method call took is awesome. I think there's a lot of potential, but without the ability to search I can't see myself reaching for this again
- HenriNext 7y agoI totally understand your point. The search functionality is currently under development, and it's by far the most critical 'missing' feature. As a workaround for webapps: using the 'Capturing Assistant' and configuring BugJail to capture only your own packages helps a lot. That way you usually see clearly which thread handled the request, and also have less app-server / framework level crap that you need to expand through before you get to your own code. If you'd like to get notified when the search functionality is available, just shoot me an email (my email is in the contact page). Thanks for providing the feedback, and sorry that the initial experience wasn't better.
- aarbor989 7y agoThanks for your reply. I actually did specify my packages in the agent -javaagent:/Users/aa/.BugJail/agent.jar=--snapshot:.--primary:io.mycompany. but it didn't seem to help too much. I'll shoot you an email to get notified - is there an estimated timeline?
- HenriNext 7y agoHmm, if setting --primary didn't help, then it might not have worked (aka Bug in BugJail..). I'd love to check that further tomorrow, if you have couple of minutes? As for the search/query timeline, I'm afraid to say anything more exact than "month or two". The core search/query is working on dev version, but it needs a lot of work.
- carapace 7y agoCan I get the source? In other words, how do I debug the debugger?
- cryptonector 7y agoI'm guessing "no", but it sounds a lot like DTrace/BTrace with many enabled probes married to a DB.
- cryptonector 7y agoSee https://news.ycombinator.com/vote?id=21846545&how=un&auth=995cf76915ecf63357da8f609c96704d4e305e99&goto=threads%3Fid%3Dcryptonector#21846545 https://news.ycombinator.com/vote?id=21846545&how=un&auth=99...
- HenriNext 7y agoNope, at least not at the moment: BugJail is closed source.
- stevemk14ebr 7y agoThis doesn't work if source code is not available. I can get a trace of the function calls but no arguments, or return values or anything. This makes it entirely useless as a reverse engineering tool, something i was very excited to use it as due to it essentially being a tracer. It also NEEDS modern java support.
- HenriNext 7y agoActually, it does work without source code (or, should work) The left side 'CallTree' is fully functional, and shows owner instances, arguments and return values. If you click those, then the Object/Array is displayed at bottom and is expandable just like in normal debugger (+slider to change debug time). So only the right side "Source" view is missing if you don't have source. If the above doesn't work, could you get in touch and I'll get it sorted out? https://support.bugjail.com https://support.bugjail.com And fully agreed on Java 9+ support, coming in next beta. Thanks for the feedback!
- thethirdone 7y agoI tried playing around with this and I can't see it being useful for me currently. If the source and tracing information were more tightly integrated it would be a lot more useful. Offering a more traditional debugging experience with the ability to rewind time to the last time a value is set would also make it valuable. A specific issue I ran into was that multi dimensional arrays do get logged as changing when a value is set in the bottom layer. This meant for my application the were a bunch of init calls setting that value, but none of the actual logical changes were tracked.
- HenriNext 7y agoThe source and tracing sides will definitely get fully integrated. This is only the second beta that even has the source side at all, so it's just "early days". The line/statement level traditional debugging is possible to implement with currently captured information, but the implementation is seriously hard, likely in 2021+ timeframe. About the specific issue: I'd really like to get that fixed, do you think you could shoot me an email so that I can followup in case that i cannot repro the bug (my email is in the contact page)? Many thanks for the feedback & apologies that the initial experience wasn't so great
- thethirdone 7y agoI made a gist [0] that demonstrates the issue. Line 5 does not make a node in the timeline. I look forward to seeing what bugjail becomes in the future. [0]: https://gist.github.com/TheThirdOne/7af9356dfb89d218162500179514b2c6 https://gist.github.com/TheThirdOne/7af9356dfb89d21816250017...
- HenriNext 7y agoThanks, appreciated. I get this fixed.
- josteink 7y ago> Offering a more traditional debugging experience with the ability to rewind time to the last time a value is set would also make it valuable. Visual Studio has this. It’s called time-travel debugging, and it makes your code run really slow :)
- kij 7y agoBugjail was mentioned in a thread about a xor bloomfilter alternative. Or at least that's where I saw it first mentioned. My bet is it triggered op's posting.
- Alupis 7y agoLooks like a pretty nice way to debug Java programs! I look forward to testing it. One quick note though, you might want to consider removing the politics from your screenshot before really releasing this product. You've got a great product here, but there's no need to inject politics - even if it's amusing to some. It takes away from the seriousness of your project and makes it feel more like a personal side project instead of something I should pay for and build into my workflow, in my opinion. Just my two-cents.
- HenriNext 7y agoYep, it was already mentioned somewhere here, but basically: I agree & will do. I look forward to your feedback on the actual product, be as brutal as you can / want! :)
- knutwannheden 7y agoSince "database" and "relational model" is mentioned, I assume the collected data is indeed being written to an RDBMS. Would be interesting to be able to poke around in that with some SQL, even if not available as an official API.
- HenriNext 7y agoSure, I can add that to next major beta. Thanks for the suggestion!
- petagonoral 7y agoHow does it compare to Chronon DVR[0] for Java. Seems similar functionality wise [0] http://chrononsystems.com/ http://chrononsystems.com/
- datastoat 7y agoDatabase-backed debugging is great! It means that debugging can be done as a data science exercise, which is very useful when, for example, a rare confluence of external factors make the program behave badly. Earlier examples: "Debugging in the (very) large", which describes how Microsoft used Windows telemetry, especially for debugging weird slow-down glitches. In the networking domain, where there is AppDynamics for trying to debug the interactions between network and distributed services. I'd love to see data-science style debugging much more accessible (especially in Python). And it's great to see that you're making a serious effort to get the user experience right -- though I hope that the underlying data will also be accessible from more capable data science platforms.
- HenriNext 7y agoBugJail writes its data files in open source format, Apache ORC. You can load the data files directly to Spark, Hive or anything else that reads ORC, and then use Python to query, visualize or get statistics from the captured program execution. Give it a try and let me know how it goes?
- rmetzler 7y agoI think it might be really useful to run BugJail as an (optional) CI step and offer the user to download, integrate with the IDE, or have historical data. But I didn't fully understand the license regarding such usecases.
- HenriNext 7y agoAbsolutely. The long term plan is to do separate edition "BugJail for CI/QA/SIT/UAT/PreProd/etc", so that when things-are-not-fine on server, you don't need to repro but just load the capture in BugJail and see what happened [edit: that in addition to your "post CI build step" use case; both uses seem compelling]. But the current beta version is not robust enough and doesn't handle long captures well enough. I want to make sure that BugJail doesn't waste people's time, hence the license allows only capturing from local workstation.