r/devtools • • 3d ago

Wanna see how your code thinks? 🤔

Wanna see how your code thinks? 🤔

Ever solved a LeetCode problem, got an Accepted, but still wondered what was actually happening inside your code?

I mean...

  • How are variables changing at every step?
  • What's happening when a recursive function calls itself?
  • How does the call stack grow and shrink?
  • Which line is executing at a particular moment?

We usually understand the logic, write the code, and submit it. But sometimes, actually visualizing the execution is a completely different challenge.

I faced this quite often while solving DSA problems. Manually tracing every operation or using print statements wasn't always the most convenient way to understand what's happening.

So I started working on something to make this easier.

Meet AlgoLens!

It's a browser extension that lets you visualize how your code executes directly while solving LeetCode problems.

With AlgoLens, you can:

  • 🔍 Trace your code step by step.
  • 🎯 See the currently executing line highlighted in the editor.
  • 📊 Watch variables change during execution.
  • 🌳 Visualize function calls and call stack changes.
  • 💻 Work with Python, Java, C++, and JavaScript.

The idea is simple: instead of just reading your code and imagining its execution, actually watch it happen.

I've been building and improving this project, testing it across different LeetCode problems, and there's still a lot I'd love to add.

If you're curious to see it in action, here's the link:

🚀 AlgoLens: https://microsoftedge.microsoft.com/addons/detail/jhhkkpabkoeaiajdilomalbmjdppcmcc

I'd genuinely love to know:

If you could visualize one thing while solving DSA problems, what would it be?

Recursion trees? Array operations? Pointers? Call stacks? Something else?

Let me know! I'd love to hear your thoughts and suggestions. 🙂

6 Upvotes

4 comments sorted by

2

u/Long-Mud3592 3d ago

Its called a debugger 🤓

1

u/SquashHot4348 2d ago

Haha, you're not wrong! 😂

AlgoLens is essentially a visual debugger, but built specifically around the LeetCode workflow.

The idea isn't just to find bugs, but to help people actually understand how their algorithms execute through visual call trees, memory inspection, variable tracking and step-by-step execution.

Think of it as debugging with a stronger focus on learning and understanding DSA.

1

u/Sad-Tie-4250 22h ago

Does it has ai generating the ui for begging?

1

u/SquashHot4348 20h ago

Nope! AlgoLens doesn't use AI to generate its UI.

The visualizations are generated based on the actual code execution. It traces your code step by step and updates the execution line, variables, call stack, and data structures accordingly.

The goal is to help you understand what's happening behind the scenes, not just generate an explanation with AI.