Open samhstn opened 7 years ago
A great introduction to debugging: https://www.youtube.com/watch?v=EBbSM6DSZnA Another good resource: https://medium.com/@diamondgfx/debugging-phoenix-with-iex-pry-5417256e1d11
Command to debug tests:
iex -S mix test --trace
(mix help test to see info on this)
mix help test
Ensure your database wont timeout when debugging tests by adding an ownership timeout in your config/test.exs: (Otherwise you will lose your database connection in 15 seconds when paused in IEx)
config/test.exs
... pool: Ecto.Adapters.SQL.Sandbox, ownership_timeout: 10 * 60 * 1000 # 10 mins
Command to debug server:
iex -S mix phoenix.server
That's everything I think you need to know tbh
A great introduction to debugging: https://www.youtube.com/watch?v=EBbSM6DSZnA Another good resource: https://medium.com/@diamondgfx/debugging-phoenix-with-iex-pry-5417256e1d11
Command to debug tests:
(
mix help test
to see info on this)Ensure your database wont timeout when debugging tests by adding an ownership timeout in your
config/test.exs
: (Otherwise you will lose your database connection in 15 seconds when paused in IEx)Command to debug server:
That's everything I think you need to know tbh