Skip to content

Commit 3540e2f

Browse files
committed
Update docs/concepts/plugin-anatomy.md
1 parent be7eb6a commit 3540e2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/concepts/plugin-anatomy.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ export default class ExamplePlugin extends Plugin {
2525

2626
[`onunload()`](../api/classes/Component.md#onunload) runs when the plugin is disabled. Any resources that your plugin is using must be released here to avoid affecting the performance of Obsidian after your plugin has been disabled.
2727

28-
To better understand when these methods are called, you can print a message to the console whenever the plugin loads and unloads. The console is a valuable "behind the scenes" tool for developers to use to monitor the status of their code. To view the console, press ctrl-shift-i in Windows/Linux, or cmd-option-i on the Mac. Click on the Console Tab in the resultant side window that appears.
28+
To better understand when these methods are called, you can print a message to the console whenever the plugin loads and unloads. The console is a valuable tool that lets developers monitor the status of their code.
29+
30+
To view the console:
31+
32+
1. Toggle the Developer Tools by pressing Ctrl+Shift+I in Windows and Linux, or Cmd-Option-I on macOS.
33+
1. Click on the Console tab in the Developer Tools window.
2934

3035
```ts {5,8} title="main.ts"
3136
import { Plugin } from "obsidian";

0 commit comments

Comments
 (0)