# How can i run/debug nginx in eclipse?

**URL:** <https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253>\
**Category:** NGINX\
**Created:** [September 27, 2011, 9:56am UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253 "2011-09-27T09:56:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 27, 2011, 9:56am UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253/1 "2011-09-27T09:56:02Z")

</div>

hi, all:

I want to run/debug the nginx in Eclipse, how can i configure it ?

thanks in advance!

–

best regards

rmn190

---

<div class="post-metadata">

**Author:** ![wangxc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@wangxc](https://www.ruby-forum.com/u/wangxc)\
**Post date:** [September 27, 2011, 10:02am UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253/2 "2011-09-27T10:02:50Z")

</div>

Run via External tools and point to your local nginx bin dir.

---

<div class="post-metadata">

**Author:** ![wangxc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@wangxc](https://www.ruby-forum.com/u/wangxc)\
**Post date:** [September 27, 2011, 5:53pm UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253/3 "2011-09-27T17:53:08Z")

</div>

A few extra things might be needed for debugging  
([nginx discovery journey: Day 36 - nginx debug and valgrind from Eclipse](http://www.nginx-discovery.com/2011/03/day-36-nginx-debug-and-valgrind-from.html))  
but you just need to import nginx as a C/C++ project with Makefile.

Hope this helps,

A.

---

<div class="post-metadata">

**Author:** ![wangxc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@wangxc](https://www.ruby-forum.com/u/wangxc)\
**Post date:** [September 28, 2011, 12:42am UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253/4 "2011-09-28T00:42:56Z")

</div>

in gdb, you may need to ‘set follow-fork-mode child’ or detach the  
worker’s  
pid

---

<div class="post-metadata">

**Author:** ![wangxc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c2a13f/32.png) [@wangxc](https://www.ruby-forum.com/u/wangxc)\
**Post date:** [September 28, 2011, 12:49am UTC](https://www.ruby-forum.com/t/how-can-i-run-debug-nginx-in-eclipse/212253/5 "2011-09-28T00:49:05Z")

</div>

> in gdb, you may need to ‘set follow-fork-mode child’ or detach the  
> worker’s pid  
> sorry, should be ‘attach the worker’
