mirror of
https://github.com/mnaoumov/obsidian-advanced-debug-mode.git
synced 2026-07-22 05:44:00 +00:00
1.2 KiB
1.2 KiB
Debug mode
Obsidian has a built-in debug mode. When it is off (the default), Obsidian strips the inline source maps from the plugins it loads, so any error you see in DevTools points at minified, bundled code that is almost impossible to read. Turning debug mode on keeps those source maps, so stack traces point back at the plugin's real source files.
Advanced Debug Mode gives you a one-click switch for it.
How to turn it on
- Open the command palette (
Ctrl/Cmd+P). - Run Advanced Debug Mode: Open settings (or open Settings -> Community plugins -> Advanced Debug Mode).
- Toggle Debug mode on.
Obsidian reloads the plugins so the source maps take effect.
How to see the difference
- Open DevTools (
Ctrl/Cmd+Shift+I). - With debug mode off, trigger an error from any plugin (the Run button in 02 Long stack traces is a good one) and note that the stack frames point at bundled
main.jslines. - Turn debug mode on, trigger the same error, and note that the frames now point at the original
.tssource files.
Once debug mode is on, move on to 02 Long stack traces to see the plugin's headline feature.