generated from thuliteio/doks
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add docs for debugging extensions
- Loading branch information
1 parent
e75d434
commit bb9f059
Showing
25 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: Debugging Extensions in Phoenix Code | ||
--- | ||
|
||
The Debug menu provides several options for extension development. | ||
|
||
![Debug Menu](./images/debugging-extensions/debug-menu.png "Debug Menu") | ||
|
||
## Phoenix Code Developer Tools | ||
|
||
The `Phoenix Code Developer Tools` option (shortcut: F12) opens up the DevTools. Use this to inspect the DOM, preview logs and debug scripts. | ||
|
||
![Phoenix Code Developer Tools](./images/debugging-extensions/dev-tools.png "Phoenix Code Developer Tools") | ||
|
||
## Phoenix Code Diagnostic Tools | ||
|
||
To open Phoenix Code Diagnostic tools, click on the `Debug` menu on the menu bar and navigate to the `Phoenix Code Diagnostic Tools` option. This section provides several tools for debugging purposes. | ||
|
||
![Phoenix Code Diagnostic Tools](./images/debugging-extensions/diagnostic-tools.png "Phoenix Code Diagnostic Tools") | ||
|
||
### Available Diagnostic Tools | ||
|
||
1. `Run Phoenix Code Tests` | ||
Executes built-in tests to verify the functionality of Phoenix Code. | ||
|
||
2. `Build Editor Tests` | ||
Builds and runs tests specifically for the editor environment. | ||
|
||
3. `Enable Detailed Logs` | ||
Activates verbose logging for better insight into extension behavior. Use this to identify errors or unexpected behaviors during development. | ||
|
||
4. `Enable PhNode Inspector` | ||
Launches the PhNode inspector, allowing in-depth inspection of the extension runtime environment. | ||
|
||
5. `How to Inspect PhNode` | ||
Provides a guide to effectively use the PhNode Inspector. | ||
![Inspect Phnode](./images/debugging-extensions/inspect-phnode.png "Inspect Phnode") | ||
|
||
6. `Live Preview Logs` | ||
Displays real-time logs for active live previews, helping debug changes dynamically. | ||
|
||
7. `Show Performance Data` | ||
Generates performance metrics to identify bottlenecks or performance issues within the extension. | ||
|
||
8. `Open Virtual File System` | ||
Opens and inspects the virtual file system used by Phoenix Code. | ||
|
||
## FAQs | ||
|
||
Q. Why is console.log not displaying? | ||
|
||
- By default, console logs are disabled. To enable them, click on Enable Detailed Logs under Phoenix Code Diagnostic Tools. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.