# How to find the definition of functions?

**URL:** <https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645>\
**Category:** Questions & Answers\
**Tags:** question\
**Created:** [February 3, 2022, 2:37pm UTC](https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645 "2022-02-03T14:37:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuzeng](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yuzeng](https://racket.discourse.group/u/yuzeng)\
**Post date:** [February 3, 2022, 2:37pm UTC](https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645/1 "2022-02-03T14:37:50Z")

</div>

Hi, I am a rookie to Racket. Recently I am debugging a Racket program, which depends on several other packages. I found it difficult to locate the definition for each function. The only way I know is using "trace". But that is not so convenient since I need to first change "define" to "trace-define". Is there any easy way to quickly find the location of function definitions? Thanks!

---

<div class="post-metadata">

**Author:** ![Laurent.O](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/laurent.o/32/18_2.png) [@Laurent.O](https://racket.discourse.group/u/Laurent.O)\
**Post date:** [February 3, 2022, 2:47pm UTC](https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645/2 "2022-02-03T14:47:18Z")

</div>

What editor are you using?

If you're using DrRacket, you can right-click on an identifier, and often you will have a context-menu item "Open defining file". And if this file is already open in DrRacket, you may even have on right-click "Jump to definition (in other file)".

---

<div class="post-metadata">

**Author:** ![yuzeng](https://avatars.discourse-cdn.com/v4/letter/y/77aa72/32.png) [@yuzeng](https://racket.discourse.group/u/yuzeng)\
**Post date:** [February 3, 2022, 3:33pm UTC](https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645/3 "2022-02-03T15:33:12Z")

</div>

Thanks! I was working with command line, and did not realize DrRacket is so powerful!

---

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [February 3, 2022, 8:29pm UTC](https://racket.discourse.group/t/how-to-find-the-definition-of-functions/645/4 "2022-02-03T20:29:44Z")

</div>

Similarly, vim with LSP support (_e.g._, via ALE) and `racket-langserver` can jump to definition.
