# Why does the default compiled and installed otp come with debug info

**URL:** <https://erlangforums.com/t/why-does-the-default-compiled-and-installed-otp-come-with-debug-info/2402>\
**Category:** Questions / Help\
**Tags:** erlang-otp\
**Created:** [February 25, 2023, 7:07am UTC](https://erlangforums.com/t/why-does-the-default-compiled-and-installed-otp-come-with-debug-info/2402 "2023-02-25T07:07:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SisMaker](https://erlangforums.com/user_avatar/erlangforums.com/sismaker/32/435_2.png) [@SisMaker](https://erlangforums.com/u/SisMaker)\
**Post date:** [February 25, 2023, 7:07am UTC](https://erlangforums.com/t/why-does-the-default-compiled-and-installed-otp-come-with-debug-info/2402/1 "2023-02-25T07:07:53Z")

</div>

if use the default Configure, build and install

> Blockquote  
> ./configure  
> make  
> make install

after install the mod beam like base64 or gen\_server’s module\_info show it has debug\_info

> Blockquote  
> gen\_server:module\_info().  
> [{module,gen\_server},  
> {exports,[{start,3},  
> {start,4},  
> {start\_monitor,3},  
> {start\_monitor,4},  
> {stop,1},  
> {stop,3},  
> {call,2},  
> {send\_request,2},  
> {send\_request,4},  
> {wait\_response,2},  
> {wait\_response,3},  
> {receive\_response,2},  
> {receive\_response,3},  
> {check\_response,2},  
> {check\_response,3},  
> {reqids\_new,0},  
> {reqids\_size,1},  
> {reqids\_add,3},  
> {reqids\_to\_list,1},  
> {reply,2},  
> {abcast,2},  
> {abcast,3},  
> {multi\_call,2},  
> {multi\_call,…},  
> {…}|…]},  
> {attributes,[{vsn,[219778496916876228729793475875380501404]},  
> {dialyzer,[{no\_improper\_lists,{mc\_send,6}}]}]},  
> {compile,[{version,“8.2.3”},  
> {options,[debug\_info,  
> {i,“/mnt/g/aaGithub/otp-OTP-26.0-rc1/lib/stdlib/src/…/include”},  
> {i,“/mnt/g/aaGithub/otp-OTP-26.0-rc1/lib/stdlib/src/…/…/kernel/include”}]},  
> {source,“/mnt/g/aaGithub/otp-OTP-26.0-rc1/lib/stdlib/src/gen\_server.erl”}]},  
> {md5,\<\<165,87,204,128,106,85,98,21,213,22,211,237,200,  
> 41,155,156\>\>}]

if not need debug info if you are in a build environment?

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [February 25, 2023, 7:37am UTC](https://erlangforums.com/t/why-does-the-default-compiled-and-installed-otp-come-with-debug-info/2402/2 "2023-02-25T07:37:02Z")

</div>

Because what Erlang/OTP delivers is a development environment.

---

<div class="post-metadata">

**Author:** ![SisMaker](https://erlangforums.com/user_avatar/erlangforums.com/sismaker/32/435_2.png) [@SisMaker](https://erlangforums.com/u/SisMaker)\
**Post date:** [February 25, 2023, 8:08am UTC](https://erlangforums.com/t/why-does-the-default-compiled-and-installed-otp-come-with-debug-info/2402/3 "2023-02-25T08:08:07Z")

</div>

It’s like this debug\_info doesn’t have any performance impact except there’s some extra abstract\_code in there
