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.
| 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. |