dotfiles
debug
Our great sponsors
dotfiles | debug | |
---|---|---|
13 | 28 | |
926 | 1,081 | |
- | 2.0% | |
4.6 | 8.5 | |
13 days ago | 11 days ago | |
Shell | Ruby | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dotfiles
-
Oh My Zsh
Yep, I use zsh with 2 plugins. One for syntax highlighting commands and another for showing auto-suggestions. It's really fast. The rest is nearly a default zsh set up in terms of zsh configuration. Everything is documented in my dotfiles https://github.com/nickjj/dotfiles.
My prompt is a 1 liner that shows your git branch as well as coloring up $ to be red or not based on if the last command failed. Coincidentally I just released a blog post today on coloring up your prompt based on if the last command failed at https://nickjanetakis.com/blog/color-your-shell-prompt-red-i....
-
Ask HN: How do you sync your computers development configurations/environment?
I stole/copied my setup from Nick Janetakis who's just great all around. Its worked for me through several new systems and many updates.
https://github.com/nickjj/dotfiles
-
vim-dirtytalk: spellcheck dictionary for programmers 📖
If anyone is looking for a word list of programming terms I have one with 500+ words in my dotfiles at https://github.com/nickjj/dotfiles/blob/master/.vim/spell/en.utf-8.add.
-
Zim – The Zsh configuration framework with blazing speed and modular extensions
Is anyone else mostly rolling with the zsh (not oh-my-zsh) defaults?
After so many years of using Bash I switched to zsh almost a year ago. I use the vanilla zsh set up with 2 plugins:
- https://github.com/zdharma-continuum/fast-syntax-highlightin... for very good and fast syntax highlighting
- https://github.com/zsh-users/zsh-autosuggestions for auto-suggestions
I don't use a plugin manager, instead I put together a ~20 line shell script[0] which handles either cloning or pulling plugins, then you can load them in your zshrc[1].
I haven't found the need for anything else and my whole dev environment is based on using tmux, terminal Vim, etc.. Basically I spend a lot of time there in my day to day.
[0] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...
[1] https://github.com/nickjj/dotfiles/blob/0076e508403c9981e393...
-
Newbie here, how should i use vim on windows ? gvim or wsl 2 vim ?
My set up is documented at https://github.com/nickjj/dotfiles and I have a bunch of Vim related videos at https://nickjanetakis.com/blog/tag/vim-tips-tricks-and-tutorials.
-
New job, windows computer. I tried to use VisualStudo code, but I got back to vim anyway
This is what I've been doing for years (WSL 2). It's really solid if you combine tmux with terminal Vim. My dotfiles work exactly the same on my native Linux device as WSL 2 and it's fast too.
-
"How to do what 90% of plugins do in vanilla vim" - what are some of the 10% plugins?
Here's a couple from my vimrc.
-
My Favorite Commandline Oneliners
All of my aliases are listed in my dotfiles at: https://github.com/nickjj/dotfiles/blob/master/.aliases
-
GUI app support is now available for the Windows Subsystem for Linux
I handle both cases in my dotfiles: https://github.com/nickjj/dotfiles/blob/a29ced43dd384f7226aaf0c384f56951869d0435/.bashrc#L59-L76
-
Hello there, any idea so I can switch between dark and light color in vim seamlessly? The problem is...
Screenshots and documentation are at: https://github.com/nickjj/dotfiles
debug
-
Metaprogramming in Ruby: It's All About the Self (2009)
I've written Ruby for coming up on 20 years, so to be honest I haven't paid attention to what is written on that subject in recent years.
Bundler shouldn't be running inside a trap context, but you might be running into a situation where standard input/output from the actual process triggering your breakpoint has been redirected. In that case, ruby-debug[1] is a good option, as you attach to it from outside[2]. Basically, run "rdbg --open yourscript.rb" and then use rdbg -A from another terminal.
You use Pry remotely too[3] if you prefer.
[1] https://github.com/ruby/debug
[2] https://github.com/ruby/debug?tab=readme-ov-file#remote-debu...
[3] https://github.com/Mon-Ouie/pry-remote
-
Ruby 3.3
what is ruby debug not able to do that you want it to do?
https://github.com/ruby/debug
a nice ide integrated experience:
https://code.visualstudio.com/docs/languages/ruby#_debugging...
https://github.com/ruby/vscode-rdbg
https://code.visualstudio.com/docs/editor/debugging
-
Connecting Debugger to Rails Applications
Execution is paused at the breakpoint (which has a little arrow pointing at it). You can then enter commands to the rdbg prompt to control the debugger. For a list of the different commands you can use, visit the documentation for the debug gem.
-
Ask HN: What side projects landed you a job?
In 2017, I wrote a toy language called Goby[1] to learn how Ruby works. A few folks contributed quite a bit to it and one of them later referred me to my previous job (as a backend developer).
Fast-forward to 2021, I got interested in debugging tools so I started contributing to the then newly created Ruby debugger[2]. In less than a year I opened more than a hundred PRs and became the 2nd biggest contributor of it. And that eventually landed me a job to work on Ruby's development tools, like LSP servers, REPLs, and of course, the debugger :-)
[1] https://github.com/goby-lang/goby
[2] https://github.com/ruby/debug
-
Ruby Tip – Interactive debugging without the need for gems
Fun fact, Ruby as a single-threaded language is how most people experience it, but Ruby has a rich cooperative multitasking called Fibers that hopefully is getting more exposure, in amongst a bevy of competing implementations and other also-ran concurrency primitives (besides the usual contenders like Threads, Process fork, foreman that just runs several processes alongside one another...)
https://github.com/ruby/debug/issues/486#issuecomment-157531...
If you want to use debugging and multi-threaded or multi-fiber Ruby at once, you can! You just have to get a bit creative. I always refer back to this thread on the Ruby `debug` gem (though the advice applies to any other REPL you can use) about applying a Mutex. You can use the built-in Fiber.blocking to prevent other fibers from running at the same time as yours, or you can use a Mutex to just ensure that you don't hit the debugger multiple times in the same process IO that would mean you've got multiple REPLs all grappling for the StdIO at once.
For a long time Ruby dev who almost never did concurrency unless it was facilitated by the OS, or before being exposed to it directly in other languages like Go, the Ruby "super power" remains intact, it's just a bit more mysterious with the concurrency stuff added. Ruby has amazing diversity in its concurrency tools, which is a nice way of saying "the language authors decided not to pick a king concurrent runtime/winning gem whilst all of the competing implementations were all a bit nascent and un-fully-formed!"
I like the bruno/fiber-scheduler but it looks like it is not the winner. It should be easy to switch to another fibers implementation, I think async is the crown champion now, but I still haven't been motivated to switch - the fiber-scheduler that is named fiber-scheduler has been good enough for me, despite shortcomings!
-
Debugging Silent Create Action Failures in Rails
Debuggers are powerful tools that allow you to step through your code line-by-line, inspecting variables and understanding the flow of execution. Using debuggers is a whole topic unto itself, and getting into the weeds with that would balloon the scope of this post. If you want more information on using them, I recommend reading the README for rdbg. This is the debugging solution for modern Ruby/Rails development. It's in Ruby's stdlib as of v3.1, and Rails 7+ apps include it in the Gemfile by default. I also recommend this section of the Rails guides for exploring how to use the debug gem with Rails applications.
-
Intro to Trace Inspector that displays Ruby trace logs with pretty UI
Trace Inspector, a tool that displays Ruby trace logs with pretty UI while debugging in VS Code, has recently landed in debug.gem. debug.gem is a Ruby standard debugger library and the default debugger in Rails. Since debug.gem supports VS Code, you can debug Ruby programs in vscode-rdbg.
-
Debugging Help
For newer versions of Rails (introduced in v7): Debug Gem
-
Anyone else working through Michael Hartl's Learn Enough RoR Series that might be able to help me with a failing unit test?
While pry is nice Ruby 2.6+ includes the debug gem in the standard library which avoids the need to install another dependency.
-
What's new in Ruby 3.2's IRB?
Have you tried ruby/debug's catch command? You can do catch Exception to achieve the same effect.
What are some alternatives?
vim-python-ide - Python development config
Byebug - Debugging in Ruby 2
org-roam - Rudimentary Roam replica with Org-mode
Pry - A runtime developer console and IRB alternative with powerful introspection capabilities.
GNU Stow - GNU Stow - mirror of savannah git repository occasionally with more bleeding-edge branches
vimspector - vimspector - A multi-language debugging system for Vim
vim-dirvish - Directory viewer for Vim :zap:
nvim-ts-context-commentstring - Neovim treesitter plugin for setting the commentstring based on the cursor location in a file.
nushell - A new type of shell
.dotfiles - My dotfiles
vcsh - config manager based on Git