github.com/rohankumardubey/proxyfs@v0.0.0-20210108201508-653efa9ab00e/DEBUG.md (about)

     1  # Debugging proxyfsd
     2  
     3  ## Logging
     4  Logs from proxyfsd are output to `proxyfsd.log`.
     5  
     6  
     7  ## Kill with trace data
     8  Find the daemon's pid: `ps -eaf | grep proxyfsd`
     9  
    10  Kill the process and get golang stack traces: `kill -ABRT <pid>`
    11  
    12  ## Using gdb
    13  Find the daemon's pid: `ps -eaf | grep proxyfsd`
    14  
    15  Tell gdb to attach to that pid: `gdb -p <pid>`
    16  
    17  
    18  ## Generating a core file
    19  If you want to generate a core file from within gdb: `(gdb) gcore`
    20  
    21  If you want to generate a core file without using gdb: `gcore <pid>`
    22