marktext/docs/dev/DEBUGGING.md
2019-10-03 23:07:53 +08:00

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`).