Debugging source code of LinuxCNC - possible?

More
3 years 4 months ago #272761 by zz912
Is it possible to debug LinuxCNC source codes step by step?

I used to play with Microsoft's Visul Studio. Is there an alternative for Linux?

Attachment not found



I am currently using the Geany editor and it is weak.

Please Log in to join the conversation.

More
3 years 4 months ago #272764 by spumco
VS code runs on Linux.  That's what I use for HAL and gcode editing.  There's even a nice hal-file plugin available.

Or maybe I misunderstood your question?

Please Log in to join the conversation.

More
3 years 4 months ago #272892 by zz912

Or maybe I misunderstood your question?

I am trying to understand how LCNC source code works.
I found bug.  github.com/LinuxCNC/linuxcnc/issues/2453...uecomment-1570683157

Python is causing me the most trouble.
I have "parameter":
Code:
self.stat.task_mode
I think it works wrong.
I don't know what's driving it.

I know, that is come from:
Code:
import linuxcnc
But the file linuxcnc.py does not exist.

I'm looking for a way to find out how some parts of the code work. At the moment, I mainly read the code and verify its functionality by writing appropriate information to the console using the print function.

If I could open LCNC in Microsoft's Visul Studio, I could see step by step how the code is read.

I'm not insisting on using Microsoft's Visul Studio, but anything better than randomly browsing through files.

I wonder if there is a more efficient way of working.

 

Please Log in to join the conversation.

More
3 years 4 months ago #272900 by Aciera
I really don't know either but I think that what you are looking for might actually be some C++ library that is callable from python through python-boost or something.

Please Log in to join the conversation.

More
3 years 4 months ago #272919 by phillc54

Please Log in to join the conversation.

More
3 years 4 months ago #273369 by zz912
I would like to ask why the emcmodule.cc file is in "/axis/" folder?
I would look for such a file in the "/python_interface/" folder.
Is this a historical reason?

Please Log in to join the conversation.

Time to create page: 0.116 seconds
Powered by Kunena Forum