Re: [Emc-users] Stepping through linuxcnc

2023-12-10 Thread Chris Albertson
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

2023-12-10 Thread Jon Elson

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

2023-12-10 Thread alanmthomason--- via Emc-users
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