GLAbstraction.jl icon indicating copy to clipboard operation
GLAbstraction.jl copied to clipboard

Add debug

Open AlainLich opened this issue 9 years ago • 3 comments

Hi, the proposed changes permit the user to select debug information printout. I made a similar pull request in GLWindow. Only tested in Julia 0.4.

  1. selection is performed by <CODE>function setDebugLevels(flagOn::Bool,level::Int)</CODE> 2)Level (ORed bit values)
1 add traceback for constructors and related
4 print uniforms
8 print vertices
16 used for GLTypes.GLVertexArray
32 used for postRenderFunctions

Additional selection of the IO stream for debug output could be added. Will keep a separate addDebug branch for improvements (based for now on my own usage.

AlainLich avatar Mar 22 '15 07:03 AlainLich

Hi sorry for being so slow...Have you looked into Lumberjack.jl for logging? It could probably integrated with a macro and a global switch to completely turn the logging off, and then use lumberjack for the different logging levels.

SimonDanisch avatar Mar 25 '15 13:03 SimonDanisch

Hi,

I had not thought about it, I see that it is in the Require list of GLAbstraction, so did you try it? I will give it a try. For now I am redirecting STDERR to reduce the clutter of "Deprecated messages", but could use a better stream. Alain

AlainLich avatar Mar 25 '15 20:03 AlainLich

Yes I experimented with it, but then more important things came up... The branch rebuild is down to zero messages now =) I hope I can integrate it with GLVisualize in the coming days! That really would be a big step!

Best, Simon

2015-03-25 21:22 GMT+01:00 AlainLich [email protected]:

Hi,

I had not thought about it, I see that it is in the Require list of GLAbstraction, so did you try it? I will give it a try. For now I am redirecting STDERR to reduce the clutter of "Deprecated messages", but could use a better stream. Alain

— Reply to this email directly or view it on GitHub https://github.com/JuliaGL/GLAbstraction.jl/pull/12#issuecomment-86202130 .

SimonDanisch avatar Mar 25 '15 20:03 SimonDanisch