mirror of
https://github.com/marktext/marktext.git
synced 2025-05-04 02:30:48 +08:00
14 lines
563 B
Markdown
Executable File
14 lines
563 B
Markdown
Executable File
# Debugging
|
|
|
|
## Using Visual Studio Code
|
|
|
|
The most simplest way is to debug using the `Debug Mark Text` configuration. You can set breakpoints and use the `debugger` statement.
|
|
|
|
**Prerequisites:**
|
|
|
|
- [Debugger for Chrome](https://marketplace.visualstudio.com/itemdetails?itemName=msjsdiag.debugger-for-chrome)
|
|
|
|
## Using Chrome Developer Tools
|
|
|
|
You can use the built-in developer tools via `View -> Toggle Developer Tools` in debug mode or connect via `chrome://inspect` using port `5861` for the main process and `8315` for the renderer process (`yarn run dev`).
|