News for hackers. Stuff that matters.

arthurgousset

Show HN: A VS Code extension to debug async Rust logs from tracing

https://github.com/hyperdrive-eng/traceback

Debugging async Rust is often a pain [1][2]. The `tracing` library [3] provides great abstractions to deal with logs generated during concurrent code execution, but eyeballing nested spans in the terminal is cumbersome.We thought "what if we could navigate async logs and nested spans in VS Code?". We looked into it and made a simple VS Code extension.It's a prototype, but if you're interested...

( Read More... | no comments | 2 points | on HN )
Thanks for sharing, first time I hear about sprkl.dev
Thanks for sharing all these links, super handy! I really appreciate it.

Show HN: A VS Code extension to visualise Rust logs in the context of your code

https://github.com/hyperdrive-eng/traceback

We made a VS Code extension [1] that lets you visualise logs and traces in the context of your code. It basically lets you recreate a debugger-like experience (with a call stack) from logs alone.This saves you from browsing logs and trying to make sense of them outside the context of your code base.We got this idea from endlessly browsing traces emitted by the tracing crate [3] in the Google...

( Read More... | 4 comments | on HN )

Show HN: We made a VS Code extension to recreate a debugger experience from logs

https://marketplace.visualstudio.com/items?itemName=hyperdrive-eng.traceback

A month ago [1], we made an MCP server so Cursor can debug Node.js on its own. We emailed every person that starred our repository [2] and learnt that frontend devs really want to give Cursor access to browser logs, and that backend devs (our intended audience) do not use debuggers nearly as much as we thought.We interviewed friends across startups and discovered that they use logs to debug,...

( Read More... | no comments | 2 points | on HN )
> “can you find all the tickets related to profile editing and combine them into an epic?”

That's a great use case. I imagine that makes you more productive because you can get multiple related issues out of the way by spending time in the same corner of your code base.

What other MCPs or use cases have caught your attention ?

Good point, I haven't used Cline yet. It looks like it can access console logs [1]

  > 4. Browser Integration
  >   * Test web pages
  >   * Capture screenshots
  >   * Inspect console logs
[1]: https://docs.cline.bot/exploring-clines-tools/cline-tools-gu...
Oh cool, thanks for sharing! I like how your VS Code extension also adds the usual debugging cues like the red dot, the yellow line, and the call stack.
> LLMs can not only add tons of log statements fast but parse the large output from a program faster.

Absolutely valid point, LLMs probably have an easier time adding log statements to the source code and parsing output from the console.

The debugger connection is "better" in certain cases because: 1. It avoids unnecessary diffs related to log statements. Currently, LLMs seem good at adding code, but forget to or struggle to delete code. 2. It avoids making logs noisy, although, admittedly, this can be managed with appropriate severity levels. 3. It provides more precise control over the program execution flow by stepping into, stepping over, and stepping out of lines.

Oh neat, thanks so much for sharing. I was getting MCP client errors when simply using `console.error`. Sending log message from the MCP server to the MCP client via the logging capability makes a ton of sense!

  ```
  {
    "capabilities": {
      "logging": {}
    }
  }
  ```
Thanks for sharing!

> Asking it to focus on 1 error at a time massively improves the success rate.

Out of curiosity, how do you tell Cursor about the bug? Do you copy/paste console messages from the terminal into the prompt?

Thanks for sharing!

> When I hit an error or exception, I explicitly tell the agent to pause and first figure out the best way to debug and quickly pinpoint the root cause.

Out of curiosity, how do you tell Cursor about the bug? Do you copy/paste console messages from the terminal into the prompt?

Oh good point, I didn't realise Console Ninja [1] is a product. Thanks for sharing!

[1]: https://console-ninja.com

Thanks for the detailed write-up, this is super useful! I really appreciate it.

> Claude captures all the NPM commands from the package json into the instructional file

Oh neat, I didn't know that. I'll try to use `/init` next time!

> it kept trying to run `npm run dev` which spins up the app itself. That's... not ideal since I'm running it myself so it can hot-reload

+1 I regularly notice that behaviour too. I'm running node in dev mode, then Cursor wants to run node, but the port is already in use.

> I'd be curious about is if there is a "clientside browser" MCP

Great point, I noticed this is a common feature request for front-end development. I haven't used it myself, but multiple people mentioned BrowserTools [1]. I think it can read the Dev Tools console, but I'm not sure about multimodal or access to the DOM.

[1]: https://github.com/AgentDeskAI/browser-tools-mcp

Oh great question, we should look into other runtimes like bun, deno, etc.

Would you like to use it in a bun project?

OP here, long-time lurker, first-time poster.

I agree with you, I also saw quite a few MCP posts on Show HN recently.

I didn't understand what the whole MCP thing was about, so my buddy and I hacked on this idea out of curiosity.

I almost didn't post it on Show HN, I thought "Ah no, nobody cares. It'll just disappear among the other posts".

Woke up Sunday morning, discovered the post is on the homepage of HN.

Re JSON-RPC, I don't have a lot to add to the conversation. I'll look into the MCP JSON-RPC spec though!

Oh interesting, thanks for sharing! First time I hear about the `CLAUDE.md` file. Catching transpilation errors seems like a great use of custom instructions.

Do you have any other custom instructions in there?

Not affiliated with Cursor, but I think there is a free plan to try Cursor out. It's still a bit janky in my opinion, but it's an interesting new dev experience.
Yes! Cursor really wants to debug. Personally, I don't love when Cursor adds 100s of `console.log` diffs to my project. I like debuggers for that.
Cursor often gets into "dead loops" trying to fix code [1][2]. But, Cursor also seems to get out of dead loops when it adds `console.log` statements everywhere.

We thought: "What if Cursor could access Node.js at runtime?". That would save it from adding `console.log` everywhere, and still get out of dead loops.

We looked into it and got Cursor to debug Node.js on its own.

It's a prototype, but if you're interested in trying it out, we'd love some feedback!

Github: github.com/hyperdrive-eng/mcp-nodejs-debugger

---

References:

[1]: "At this point I feel like giving up on Cursor and just accept that WE'RE NOT THERE YET." ~Source: https://forum.cursor.com/t/cursor-for-complex-projects/38911

[2]: "We've all had the issue. You're trying to build a complex project with your AI companion. It runs into a dead loop, coding in circles, making suggestions it already tried that didn't work." ~Source: https://www.reddit.com/r/ChatGPTCoding/comments/1gz8fxb/solu...

Show HN: Let Claude Code control Node.js debugger

https://github.com/hyperdrive-eng/mcp-nodejs-debugger

Debugging is hard for LLMs, because they primarily depend on source code, and they don't have access to runtime state.I spent countless hours debugging code, and the only way I found LLMs useful for that, is to ask them to add log lines. That's annoying, because it pollutes my code and adds unnecessary diffs.So we made an MCP server that solve this problem. It gives MCP clients (like Claude...

( Read More... | no comments | 3 points | on HN )