whatisgithub

What is mozdebug.vim?

leonid-shevtsov/mozdebug.vim — explained in plain English

Analysis updated 2026-08-07 · repo last pushed 2011-07-21

1VimLAudience · developerComplexity · 2/5DormantSetup · moderate

In one sentence

A Vim plugin that lets you debug JavaScript running in Mozilla-based browsers like Firefox directly from Vim, using the MozRepl browser extension to connect the two together.

Mindmap

mindmap
  root((repo))
    What it does
      Debug code from Vim
      Set breakpoints
      Inspect variables
      Step through code
    How it works
      Connects via MozRepl
      Requires Firefox addon
      Communicates with browser
    Use cases
      Debug Firefox extensions
      Debug JavaScript in browser
      Stay inside Vim
    Tech stack
      VimL plugin
      Firefox browser
      MozRepl addon
    Audience
      Vim users
      Web developers
    Limitations
      Older project from 2011
      May not work on modern setups

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Debug JavaScript running in Firefox without leaving the Vim editor.

USE CASE 2

Step through Firefox extension code line by line to track down bugs.

USE CASE 3

Set breakpoints and inspect variables in Mozilla-based browser code from Vim.

What is it built with?

VimLVimFirefoxMozRepl

How does it compare?

leonid-shevtsov/mozdebug.vimcocopon/po-mini.vimjianyuh/vimbackup
Stars11
LanguageVimLVimLVimL
Last pushed2011-07-212013-12-202016-09-19
MaintenanceDormantDormantDormant
Setup difficultymoderateeasyeasy
Complexity2/51/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires both the MozRepl Firefox addon and the Vim plugin, being from 2011, it may not work on modern browser/editor versions without older software.

So what is it?

MozDebug.vim is a plugin that lets programmers debug code running inside Mozilla-based web browsers directly from the Vim text editor. Instead of switching back and forth between your browser and your editor to track down bugs, you can set breakpoints, inspect variables, and step through your code without leaving Vim. The plugin works as a frontend that connects to Firefox through a companion browser extension called MozRepl. You install MozRepl into Firefox, then install this plugin into Vim. Once both pieces are in place, Vim can communicate with the browser and control how your code executes, letting you pause it, examine what's happening, and find problems. This tool would appeal to developers who spend their working hours in Vim and want to stay there as much as possible. For example, a web developer building a Firefox extension or working on JavaScript that runs in Mozilla-based browsers could use this to step through their code line by line, checking values and tracking down errors, all from within the editor they already know. The README doesn't go into much detail beyond the basic setup steps. It points users to a help file within Vim for actual usage instructions, so you'd need to consult that documentation after installation to learn the specific commands and workflow. It's worth noting that this is an older project from 2011, and it depends on MozRepl, a Firefox addon. Given how browsers and their extension ecosystems have evolved significantly since then, getting this working on modern setups may require some extra effort or may not be feasible at all without using older versions of these tools.

Copy-paste prompts

Prompt 1
How do I install and configure MozDebug.vim with MozRepl so I can debug JavaScript in Firefox from Vim?
Prompt 2
What are the Vim commands to set breakpoints, step through code, and inspect variables using MozDebug.vim?
Prompt 3
Help me troubleshoot why MozDebug.vim is not connecting to Firefox through MozRepl after I installed both.

Frequently asked questions

What is mozdebug.vim?

A Vim plugin that lets you debug JavaScript running in Mozilla-based browsers like Firefox directly from Vim, using the MozRepl browser extension to connect the two together.

What language is mozdebug.vim written in?

Mainly VimL. The stack also includes VimL, Vim, Firefox.

Is mozdebug.vim actively maintained?

Dormant — no commits in 2+ years (last push 2011-07-21).

How hard is mozdebug.vim to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is mozdebug.vim for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.