Poor's man debugger
🚧 Under development, it works but some stuff might change in the future.
The most simple way to debug your code.
This is a simple TUI debugger, it starts a local server that accepts payloads from the adapters. Everything goes through HTTP requests, so it's very fast compared to other solutions.
You can think of it as a console.log(), but instead of the browser you use the terminal and it works with any language.
Requirements
- PMD-adapter for your language installed in the project.
Installation
You can install the package via go install:
go install github.com/nkoporec/pmd@latest
Install one of the supported adapters:
Configuration
By default it will start a server at 127.0.0.1:8080. If this port does not work for you, then you can change it in the config file, located at $HOME/.config/pmd/config.yml
Usage
PHP example:
- Start the PMD with
pmd listen
- Set the breakpoint
pmd("Hello world!");
- Run the code and check the terminal
Keybindings
- Breakpoint up ->
k
- Breakpoint down ->
j
- Call stack up ->
K
- Call stack down ->
J
- Clear screen ->
Ctrl + r
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.