pmd

command module
v0.0.0-...-9daf7eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: MIT Imports: 7 Imported by: 0

README

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.

_zsh_tmux_plugin_run 2022-04-29 15-28-12

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:

  1. Start the PMD with pmd listen
  2. Set the breakpoint
pmd("Hello world!");
  1. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
app
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL