mirror of
https://github.com/mnaoumov/obsidian-advanced-debug-mode.git
synced 2026-07-22 12:30:23 +00:00
Add a developer-focused demo vault that shows how Advanced Debug Mode enriches the DevTools console. Notes are numbered basic to advanced and cover debug mode, long stack traces (with a Run button that throws through async boundaries), async long stack traces, long-running-task timeouts, mobile DevTools, debug namespaces, and every setting. A no-app integration suite keeps the notes in sync with the PluginSettings surface. The root README documents the three ways to open it.
17 lines
834 B
TypeScript
17 lines
834 B
TypeScript
import type { App } from 'obsidian';
|
|
|
|
import { Notice } from 'obsidian';
|
|
import {
|
|
enableCommunityPlugin,
|
|
installCommunityPlugin
|
|
} from 'obsidian-dev-utils/obsidian/community-plugins';
|
|
|
|
// Advanced Debug Mode enriches the DevTools console (longer stack traces, debug namespaces, relaxed
|
|
// Timeouts), so its interactive demo is a code-button that throws an error and lets you read the enriched
|
|
// Stack trace in DevTools - that button's code lives inline in the note. The only helper this vault needs
|
|
// Here is the shared CodeScript Toolkit installer used by the prerequisite note's button.
|
|
export async function installAndEnable(app: App, pluginId: string): Promise<void> {
|
|
await installCommunityPlugin({ app, pluginId });
|
|
await enableCommunityPlugin({ app, pluginId });
|
|
new Notice(`Installed and enabled: ${pluginId}`);
|
|
}
|