Browse Source

update developing documentation

tags/v0.12.0
Shivaram Lingamneni 6 years ago
parent
commit
1a6c334b3d
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      DEVELOPING.md

+ 12
- 2
DEVELOPING.md View File

@@ -79,9 +79,19 @@ As well, there's a decent set of 'tests' here, which I like to run Oragono throu
79 79
 https://github.com/DanielOaks/irctest
80 80
 
81 81
 
82
-## Debugging Hangs
82
+## Debugging
83 83
 
84
-To debug a hang, the best thing to do is to get a stack trace. Go's nice, and you can do so by running this:
84
+It's helpful to enable all loglines while developing. Here's how to configure this:
85
+
86
+```yaml
87
+logging:
88
+    -
89
+        method: stderr
90
+        type: "*"
91
+        level: debug
92
+```
93
+
94
+To debug a hang, the best thing to do is to get a stack trace. The easiest way to get stack traces is with the [pprof listener](https://golang.org/pkg/net/http/pprof/), which can be enabled in the `debug` section of the config. Once it's enabled, you can navigate to `http://localhost:6060/debug/pprof/` in your browser and go from there. If that doesn't work, try:
85 95
 
86 96
     $ kill -ABRT <procid>
87 97
 

Loading…
Cancel
Save