debug
debug copied to clipboard
Conditional debug logging for C
i just wrote [debug.c](https://github.com/stephenmathieson/debug.c) which closes #7, #8 and #9. it's a completely different api though. thoughts on deprecating this in favour of the newer (feature rich) impl?
We're only requesting an array with [one element](https://github.com/clibs/debug/blob/4523a96c56d7eafa11fffe3a48dfef521963d05d/debug.c#L20), which causes nasal demons: ``` $ DEBUG=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z ./test *** glibc detected *** ./test: double free or corruption (out): 0x0000000000ab7030 *** ======= Backtrace:...
No idea how we'd handle it with the current impl (may need a rewrite :/), but I'd greatly appreciate being able to use non-alphanumberic chars when defining debugs. For example:...
It would make `DEBUG=*` legible with many debuggers enabled. See the [js impl](https://github.com/visionmedia/debug) for examples