All Projects → AlexKnauth → debug

AlexKnauth / debug

Licence: other
a racket lang-extension for debugging, and a macro for inserting a debug-repl

Programming Languages

racket
414 projects

Labels

Projects that are alternatives of or similar to debug

sendmessage
SendMessage is a little tool to send Windows messages to any window.
Stars: ✭ 93 (+165.71%)
Mutual labels:  debug
SmartDump
SmartDump - an exception and memory dump capture utility
Stars: ✭ 17 (-51.43%)
Mutual labels:  debug
laravel-live-tinker
Laravel tinker in your browser with code highlight
Stars: ✭ 51 (+45.71%)
Mutual labels:  debug
flutter debug drawer
Adds a side menu in all screens with debug information. You can decide which information to show and create new modules to include more information.
Stars: ✭ 26 (-25.71%)
Mutual labels:  debug
jsdom-devtools-formatter
Make jsdom elements look like real DOM elements in Chrome Devtools console
Stars: ✭ 40 (+14.29%)
Mutual labels:  debug
dbg-macro
A set of dbg(…) macros for C
Stars: ✭ 53 (+51.43%)
Mutual labels:  debug
ts-transform-react-jsx-source
TypeScript AST Transformer that adds source file and line number to JSX elements
Stars: ✭ 12 (-65.71%)
Mutual labels:  debug
symfony-debug-toolbar-git
Get the latest Git commit information into Symfony debug toolbar
Stars: ✭ 30 (-14.29%)
Mutual labels:  debug
PBD
🖨️🐞 Printf Based Debugger, a user-friendly C debugger
Stars: ✭ 52 (+48.57%)
Mutual labels:  debug
kokkos-tools
Kokkos C++ Performance Portability Programming EcoSystem: Profiling and Debugging Tools
Stars: ✭ 52 (+48.57%)
Mutual labels:  debug
object-gui
Object GUI - Javascript Object GUI Editor
Stars: ✭ 51 (+45.71%)
Mutual labels:  debug
sdebug
Xdebug — Step Debugger and Debugging Aid for PHP
Stars: ✭ 263 (+651.43%)
Mutual labels:  debug
XYDebugView
XYDebugView is debug tool to draw the all view's frame in device screen and show it by 2d/3d style like reveal did.
Stars: ✭ 101 (+188.57%)
Mutual labels:  debug
consono
The most correct, informative, appealing and configurable variable inspector for JavaScript
Stars: ✭ 17 (-51.43%)
Mutual labels:  debug
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-48.57%)
Mutual labels:  debug
react-native-debug-server-host
React Native Debug server host for iOS
Stars: ✭ 45 (+28.57%)
Mutual labels:  debug
knex-tiny-logger
Zero config queries logger for knex
Stars: ✭ 24 (-31.43%)
Mutual labels:  debug
ignition
A beautiful error page for PHP apps
Stars: ✭ 171 (+388.57%)
Mutual labels:  debug
debugkit
🪲 Android开发调试悬浮窗口工具
Stars: ✭ 44 (+25.71%)
Mutual labels:  debug
FWDebug
iOS调试库,支持iOS11+,无需添加任何代码,方便iOS开发和测试。 iOS debugging library, support for iOS11 +, without adding any code to facilitate iOS development and testing.
Stars: ✭ 49 (+40%)
Mutual labels:  debug

debug

A lang-extension for debugging, based on sugar/debug from mbutterick/sugar

documentation: http://pkg-build.racket-lang.org/doc/debug/index.html

#lang debug

To debug the value of an expression, simply put debug in front of the language at the top of the file (for instance #lang debug racket), and put #R, #RR or #RRR in front of the expression.

  • #R reports the value and returns it
  • #RR reports the value with a line number and returns it
  • #RRR reports the value with the file and line number, and returns it
#lang debug racket
#R(+ 1 2)

Shows the output:

(+ 1 2) = 3
3
#lang debug racket
(+ 1 2 #R(* 3 4))

Shows the output:

(* 3 4) = 12
15

#lang debug/no-output

Allows #R, #RR and #RRR like #lang debug, but they don't add any debug output, they just return the expression inside.

debug-repl

> (require debug/repl)
> (define (f x y)
    (debug-repl))
> (f 1 2)
-> ; in the debug-repl now
   x
1
-> y
2
-> (+ x y)
3
-> ; exit the debug-repl by pressing ctrl-D
> ; back in the normal repl
  (f (λ (g a) (g a)) (list add1 4))
-> ; a new debug-repl
   x
#<procedure>
-> y
(list #<procedure:add1> 4)
-> (x string->number "3")
3
-> (x (first y) (second y))
5
-> ; exit this debug-repl by pressing ctrl-D
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].