All Projects → weavejester → Hashp

weavejester / Hashp

Licence: mit
A better "prn" for debugging

Programming Languages

clojure
4091 projects

Labels

Projects that are alternatives of or similar to Hashp

pugdebug
pugdebug is a standalone debugging client for PHP applications that uses XDebug as the debugging engine.
Stars: ✭ 72 (-78.95%)
Mutual labels:  debugging
Watchpoints
watchpoints is an easy-to-use, intuitive variable/object monitor tool for python that behaves similar to watchpoints in gdb.
Stars: ✭ 261 (-23.68%)
Mutual labels:  debugging
Netfox
A lightweight, one line setup, iOS / OSX network debugging library! 🦊
Stars: ✭ 3,188 (+832.16%)
Mutual labels:  debugging
programanalysiscourse
COM S 413/513 and CPR E 513 Foundations and Applications of Program Analysis @ Iowa State University
Stars: ✭ 19 (-94.44%)
Mutual labels:  debugging
Flawless Ios
Awesome iOS guides from the community, shared on Flawless iOS Medium blog 👉
Stars: ✭ 260 (-23.98%)
Mutual labels:  debugging
Concuerror
Concuerror is a stateless model checking tool for Erlang programs.
Stars: ✭ 277 (-19.01%)
Mutual labels:  debugging
tracehash
Compress long exception traces down to short signatures
Stars: ✭ 20 (-94.15%)
Mutual labels:  debugging
Debugging Stories
A collection of debugging stories. PRs welcome (sorry for the backlog) :-)
Stars: ✭ 3,380 (+888.3%)
Mutual labels:  debugging
Bistoury
Bistoury是去哪儿网的java应用生产问题诊断工具,提供了一站式的问题诊断方案
Stars: ✭ 3,198 (+835.09%)
Mutual labels:  debugging
Tensorwatch
Debugging, monitoring and visualization for Python Machine Learning and Data Science
Stars: ✭ 3,191 (+833.04%)
Mutual labels:  debugging
node-wasm-trace
Instruments wasm files and traces execution
Stars: ✭ 24 (-92.98%)
Mutual labels:  debugging
Debugo
一个可能有点用的 iOS 调试工具~
Stars: ✭ 258 (-24.56%)
Mutual labels:  debugging
Django Querycount
Middleware that Prints the number of DB queries to the runserver console.
Stars: ✭ 280 (-18.13%)
Mutual labels:  debugging
nvim-dap-python
An extension for nvim-dap, providing default configurations for python and methods to debug individual test methods or classes.
Stars: ✭ 70 (-79.53%)
Mutual labels:  debugging
Python Manhole
Debugging manhole for python applications.
Stars: ✭ 306 (-10.53%)
Mutual labels:  debugging
ycecream
Sweeter debugging and benchmarking Python programs.
Stars: ✭ 38 (-88.89%)
Mutual labels:  debugging
Stern
⎈ Multi pod and container log tailing for Kubernetes -- Friendly fork of https://github.com/wercker/stern
Stars: ✭ 268 (-21.64%)
Mutual labels:  debugging
Crashreporter
CrashReporter is a handy tool to capture app crashes and save them in a file.
Stars: ✭ 327 (-4.39%)
Mutual labels:  debugging
Idenlib
idenLib - Library Function Identification [This project is not maintained anymore]
Stars: ✭ 322 (-5.85%)
Mutual labels:  debugging
Tapping device
TappingDevice makes objects tell you what they do, so you don't need to track them yourself.
Stars: ✭ 296 (-13.45%)
Mutual labels:  debugging

Hashp

Hashp is a better prn for debugging Clojure code. Inspired by projects like Spyscope, Hashp (ab)uses data readers to make it easier to get useful debugging data sent to STDOUT.

Usage

Once installed, you can add #p in front of any form you wish to print:

(ns example.core)

(defn mean [xs]
  (/ (double #p (reduce + xs)) #p (count xs)))

It's faster to type than (prn ...), returns the original result, and produces more useful output by printing the original form, function and line number:

user=> (mean [1 4 5 2])
#p[example.core/mean:4] (reduce + xs) => 12
#p[example.core/mean:4] (count xs) => 4
3.0

Install

Leiningen

Add the following to ~/.lein/profiles.clj:

{:user
 {:dependencies [[hashp "0.2.1"]]
  :injections [(require 'hashp.core)]}}

Boot

Add the following to ~/.boot/profile.boot:

(set-env! :dependencies #(conj % '[hashp "0.2.1"]))

(require 'hashp.core)
(boot.core/load-data-readers!)

Shadow-CLJS

Add the following to shadow-cljs.edn:

{:dependencies [hashp "0.2.1"]
 :builds {:app {:devtools {:preloads [hashp.core]}}}}

Or alternatively via ~/.shadow-cljs/config.edn and --config-merge:

~/.shadow-cljs/config.edn:

{:dependencies [[hashp "0.2.1"]]}

Run:

shadow-cljs watch app --config-merge '{:devtools {:preloads [hashp.core]}}'

License

Copyright © 2021 James Reeves

Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].