Thank you very much for the pointer to kicad_advanced file and saveRouterDebugLog() I can see in the code all the settings that are valid for kicad_advanced, and I successfully turned on the ShowRouterDebugGraphics and I can now see the decorator and additional information being displayed by pcbnew and pns router. I also looked up where saveRouterDebugLog() was called from, and I see in ROUTER_TOOL::handleCommonEvents that once ShowRouterDebugGraphics is turned on, that key press '0' then dumps the logs to pns.log
I did this and I was able to inspect the pns inner workings. Thank you for these important pointers. Okay - I feel that I have the tools now to start working on the pns code. Thank you to the dev team for the assistance. Regards Stuart On Saturday, July 8, 2023 at 8:25:21 PM UTC+1 [email protected] wrote: > At least some of the debug decorator can be turned on by putting > “ShowRouterDebugGraphics=1” in your kicad_advanced file (a text file in > your kicad preferences directory). I’m not sure if that turns on all of it > or not…. > > I’ve only used the logging stuff once. I broke in the debugger and called > saveRouterDebugLog(). (But I’m sure there’s a more automated way to do it.) > > On 8 Jul 2023, at 15:58, Stuart Tyler <[email protected]> wrote: > > Thank you for the tip on setting the launch environment variable > *KICAD_ALLOC_CONSOLE. > *That worked. Now I can see printf() output. > > Jeff, I have been seeing the decorator stuff in the code. What is the > standard way of turning this on? I also see LOGs being used. > m_logger->Log(). I follow this to being pushed onto m_events and accessed > in method TOOL_EVENT. > > What I am missing is how to access m_events from the screen or a log file. > A pointer to accessing the decorator and logs would be appreciated. > > Ta > Stuart > > > > -- > You received this message because you are subscribed to the Google Groups > "KiCad Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To view this discussion on the web visit > https://groups.google.com/a/kicad.org/d/msgid/devlist/6563552f-9a63-485b-a75e-b9455f31cd8dn%40kicad.org > > <https://groups.google.com/a/kicad.org/d/msgid/devlist/6563552f-9a63-485b-a75e-b9455f31cd8dn%40kicad.org?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "KiCad Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/2a2cd0ef-27b7-4e73-915d-034c16aa76d1n%40kicad.org.
