Comments (2)
👋 I don't have good context around the forking mechanism, but as a workaround you can add require: "debug/prelude"
after gem "debug"
. Then the debugger won't be activated by default and cause the problem, but you can still use debugger
or binding.break
breakpoints.
from debug.
👋 I don't have good context around the forking mechanism, but as a workaround you can add
require: "debug/prelude"
aftergem "debug"
. Then the debugger won't be activated by default and cause the problem, but you can still usedebugger
orbinding.break
breakpoints.
Thank you.
I added require: "debug/prelude"
.
I have confirmed that adding the above results in the expected behavior.
Script:
Gemfile
# frozen_string_literal: true
source "https://rubygems.org"
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
gem "daemons"
test_daemons.rb
#!/usr/bin/env ruby
require 'bundler/setup'
Bundler.setup
require 'daemons'
2.times do |i|
Daemons.run_proc("test_daemon.#{i}") do
loop do
end
end
end
Terminal:
$ ./test_daemon.rb start
$ ps aux | grep test_daemon
sada 2303 99.8 0.1 106720 31088 ? R 16:03 6:04 test_daemon.0
sada 2305 99.8 0.1 106720 31092 ? R 16:03 6:04 test_daemon.1
sada 2308 0.0 0.0 7488 656 pts/2 S+ 16:09 0:00 grep test_daemon
from debug.
Related Issues (20)
- LocalJumpError: break from proc-closure on typo in debug prompt HOT 2
- Setting breaking points with absolute path fails from nvim-dap and rdbg on Docker container HOT 1
- binding.b doesn't stop code on second controller request and above
- History not available
- Setting the irb_console configuration true has no effect HOT 1
- <enter> does not repeat last command in irb_console mode.
- Proposal: reverse continue
- Feat/Bug: Set the value of `_` (underscore) to the value of the last ruby expression HOT 3
- Slow print (STDOUT) of large objects
- Question: Could not load source 'Fastfile': not found, while debugging a Fastlane lane from VSCODE
- Remove usage of deprecated constant IRB::InputCompletor
- `!!!` to fast forward breakpoints like in pry HOT 5
- Large data output HOT 1
- Add a shorter alias for the whereami command HOT 1
- Could not find valid gem HOT 1
- Cut a new release for the Rails stdin bug HOT 2
- Keystrokes between `debugger` sessions seem to persist HOT 4
- Having to specify bundle exec twice HOT 2
- The console become frozen while debugging in Rails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debug.