Skip to content

obsidian-debug-launcher

Starts desktop Obsidian with the Electron renderer’s remote debugging endpoint open, so an IDE can attach to it.

The endpoint is Chromium’s --remote-debugging-port, not Obsidian’s own debug setting. Obsidian is a single-instance app: launching it while it already runs hands the request to the running process, which keeps whatever flags it was started with. So the launcher never trusts the spawn alone; it reports success only once the endpoint answers and says it is Obsidian.

Interface Description
StartObsidianForDebuggingOptions Options for startObsidianForDebugging.
StartObsidianForDebuggingResult The result of startObsidianForDebugging.
Function Description
resolveObsidianExecutable Resolves the installed desktop Obsidian executable. Looks on PATH first (preferring a real executable over a scoop shim), then at the installer’s location: %LOCALAPPDATA%\Programs\Obsidian\Obsidian.exe on Windows and /Applications/Obsidian.app on macOS. On Linux only PATH is searched.
startObsidianForDebugging Starts desktop Obsidian with --remote-debugging-port and waits until its renderer endpoint answers. When an Obsidian already answers on the port, nothing is started. It does not build or enable a plugin, and it does not attach a debugger.
Variable Description
DEFAULT_REMOTE_DEBUGGING_PORT The renderer debugging port used when none is given.