
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Helps you to introspect and debug your code.
Install gem:
$ gem install debugging
In Ruby:
require 'debugging/all'
Instead of requiring all, you can also require only one function, e.g:
require 'debugging/q'
In a bundler project, you will need to add the gem to your project's Gemfile
:
gem 'debugging', require: 'debugging/all'
Prints out that a specific point in a script has been reached.
[label] @ method `...', line ... of file ....
Lets your terminal bell ring.
Prints out your current callstack. For example:
<main>
start
catch
block in start
eval_input
each_top_level_statement
catch
block in each_top_level_statement
loop
block (2 levels) in each_top_level_statement
block in eval_input
signal_status
block (2 levels) in eval_input
evaluate
evaluate
eval
irb_binding
Displays parameter names and types for a proc or method (identified by a symbol):
def function(a, b = 3, &c)
end
howtocall :function #=> function(a, b, &c)
What is not visible in the example above: All optional parameters are displayed underlined.
If you want to access a function that is defined on an other object than the current one, you can pass it as an optional parameter:
howtocall FileUtils, :cd #=> cd(dir, options, &block)
howtocall Open3, :popen3 #=> popen3(*cmd, **opts, &block)
An example with lambdas and keyword arguments:
a = ->(filter: /\A.*\z/, string:){ string[filter] }
howtocall a #=> call(string:, filter:)
Like Kernel#p
, but with colors on one line:
q :is_like, ?p, "but on one line"
Assists you when matching regexes againts strings. Try this one:
re "mail@janlelis.de", /\b([A-Z0-9._%+-]+)@([A-Z0-9.-]+\.[A-Z]{2,10})\b/i, 0..2
Copyright (c) 2010-2022 Jan Lelis. MIT License. Originated from the zucker gem.
FAQs
Unknown package
We found that debugging demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.