# Is there any way to avoid fork() for debugging?

**URL:** <https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879>\
**Category:** NGINX\
**Created:** [October 1, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879 "2010-10-01T20:08:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabio\_Kaminski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Fabio\_Kaminski](https://www.ruby-forum.com/u/Fabio_Kaminski)\
**Post date:** [October 1, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879/1 "2010-10-01T20:08:58Z")

</div>

Is there any way to avoid fork() for debugging, like the -X option from  
apache?

i’ve tried to set workers to 0 on config… just the master process  
alright…  
but there’s still a fork…

how you guys use gdb?

Thanks

Fabio Kaminski

---

<div class="post-metadata">

**Author:** ![Fabio\_Kaminski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Fabio\_Kaminski](https://www.ruby-forum.com/u/Fabio_Kaminski)\
**Post date:** [October 1, 2010, 8:14pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879/2 "2010-10-01T20:14:14Z")

</div>

daemon off;  
master\_process off;

Fabio Kaminski wrote:

> Is there any way to avoid fork() for debugging, like the -X option from  
> apache?
> 
> i’ve tried to set workers to 0 on config.. just the master process  
> alright.. but there’s still a fork..
> 
> how you guys use gdb?

–  
Best regards,  
Valery K.

---

<div class="post-metadata">

**Author:** ![Fabio\_Kaminski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Fabio\_Kaminski](https://www.ruby-forum.com/u/Fabio_Kaminski)\
**Post date:** [October 1, 2010, 8:14pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879/3 "2010-10-01T20:14:49Z")

</div>

“set follow-fork-mode child” on gdb it’s not working ☹

---

<div class="post-metadata">

**Author:** ![Fabio\_Kaminski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Fabio\_Kaminski](https://www.ruby-forum.com/u/Fabio_Kaminski)\
**Post date:** [October 1, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879/4 "2010-10-01T20:23:01Z")

</div>

indeed set follow-fork-mode child was working… like with this  
undeamonized  
version that you pointed out…

im sure everybody asks that 🙂

thanks Valery,

Fabio

On Fri, Oct 1, 2010 at 3:13 PM, Valery K.  
\<removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Fabio\_Kaminski](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/9d8465/32.png) [@Fabio\_Kaminski](https://www.ruby-forum.com/u/Fabio_Kaminski)\
**Post date:** [October 1, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-avoid-fork-for-debugging/195879/5 "2010-10-01T20:30:03Z")

</div>

Nice! i can see the flow now! i wish i had more time to do that 🙂
