Re: [Emc-users] Stepping through linuxcnc
On Sun, 10 Dec 2023 at 23:14, alanmthomason--- via Emc-users wrote: > > I was hoping to use a debugger to step through it. Rather than stepping through the code, you could try following the flow id information in the code from the G-code interpreter into the motion module with the help of an IDE. A good starting point is src/emc/rs274ngc/interp_convert.cc And the information here is only partly wrong: https://linuxcnc.org/docs/stable/html/code/code-notes.html -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Stepping through linuxcnc
Debuggers don’t work well with real-time code. and there is WAY to much code for that. Professionally I’ve had to come up to speed on large software projects several times. The best way is to first become an expert at the user level and learn what it does. This applies to radars, camera firmware, and everything else. Then you skim-read the code just to see what is there. and take notes on what the parts are. Next study one section at a time. You generally don’t need to know how everything works in great detail, just where to find it if you need it. Another good way to learn is to write new regression tests, no software ever has enough of these. Writing a test forces you to look in detail and the test result proves you understand. Then, at last, you can make changes, then build and test. But the first step is to be an expert-level user. > On Dec 10, 2023, at 3:08 PM, alanmthomason--- via Emc-users > wrote: > > Hi There.I am looking for guidance to build linuxcnc in a way that I can > step through it. I can build currently, but in trying to understand the > underlying code I was hoping to use a debugger to step through it. > > I could not find any flags in the configure -help that looked right. > > > > Thanks so much, Alan. > > > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] Stepping through linuxcnc
On 12/10/23 17:08, alanmthomason--- via Emc-users wrote: Hi There.I am looking for guidance to build linuxcnc in a way that I can step through it. I can build currently, but in trying to understand the underlying code I was hoping to use a debugger to step through it. I could not find any flags in the configure -help that looked right. Stepping through code with a debugger is not likely to be possible in a program that is partially real-time. Jon ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] Stepping through linuxcnc
Hi There.I am looking for guidance to build linuxcnc in a way that I can step through it. I can build currently, but in trying to understand the underlying code I was hoping to use a debugger to step through it. I could not find any flags in the configure -help that looked right. Thanks so much, Alan. ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users