hn.today

Show HN: Right-click any log line to see its call stack in VS Code

marketplace.visualstudio.com6 points0 comments
Screenshot of Show HN: Right-click any log line to see its call stack in VS Code

LogCallStack is a VS Code extension that instantly reconstructs the full call stack and local variable context for any chosen log line, without attaching a debugger. Right‑click a log entry and choose Analyze Log Line: the tool parses the log to identify class/method/thread, searches the workspace for the method definition, and traces backward frame by frame to build a clickable stack panel showing file:line locations and extracted local variable values. Frames appear progressively and results are reported quickly (parallel search often returns under a second). Clicking a frame jumps to the exact source line and a stack header returns to the original log line, making it straightforward to see how a particular log was produced.

Operation is pure local static analysis - no cloud, AI, or telemetry - and requires zero setup when auto‑detected formats match. Built‑in support covers many languages and formats (Java/Kotlin: Log4j, Logback, SLF4J; Python: logging/structlog; Rust: log4rs/tracing; C/C++; C#/.NET: NLog/Serilog; JS/TS: winston/pino; Go: zap/zerolog; Android Logcat; Linux syslog; Windows event formats). A wizard allows custom regex log formats; settings include logFormat (auto/custom), customPattern, and maxFrames (default 7). Requires VS Code 1.85+ with source and log in the same workspace. Licensed MIT, with community GitHub issues and optional paid support.

Read on marketplace.visualstudio.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

My C23 Conventions

My C23 Conventions

Abner Coimbre discusses modern C conventions in C23, emphasizing the use of maybe_unused to handle unused return values and improve code clarity. He also highlights issues with designated initializers not zero-initializing structs, leading to more careful struct initialization practices. (abner.page)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.