Dbg() not working in .exs files

I have a big project at work and for some reason, in this project, dbg() will work fine if put in a .ex file but will not work on .exs files. I just don’t get any output from it when I run the test.

Does anyone have any idea of what could be causing this? I tried looking at our mix.exs and other configs but couldn’t think of anything interfering with it.

1 Like

Are you using some test runner that truncates the output to only the results? I experienced something like that before and the only thing I can think of.

Do you still see nothing if you try it in a random exs file outside of a test file?

$ echo 'dbg("test")' > dbg_test.exs
$ elixir dbg_test.exs
1 Like