rawhat / mist

gleam HTTP server. because it glistens on a web
Apache License 2.0
260 stars 11 forks source link

how to debug why server failing #41

Closed bogdandubyk closed 3 months ago

bogdandubyk commented 4 months ago

I'm on Gleam 1.0.0 and using Mist 0.17, learning gleam. I spent some time trying to understand why the server crashed without any error

W7XG6T43GH: ~/projects/gleam/products main!
$ gleam run                                                                                                                                                                   [18:44:28] 
  Compiling app
   Compiled in 0.24s
    Running app.main
Listening on http://localhost:3000

W7XG6T43GH: ~/projects/gleam/products main!

and at the end, I just override the code from scratch to make it work. I understand that I had a bug somewhere, but how can I debug it, currently, it seems like it just silently crashed and that's it

rawhat commented 4 months ago

Hmm, it's hard to say what exactly would have helped here. Do you have the code that crashed?

It should be generally logging if anything fails.

rawhat commented 3 months ago

Just closing this since there hasn't been any activity in a bit.