- Posts: 596
- Thank you received: 0
Debugging source code of LinuxCNC - possible?
3 years 4 months ago #272761
by zz912
Debugging source code of LinuxCNC - possible? was created 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?
I am currently using the Geany editor and it is weak.
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.
3 years 4 months ago #272764
by spumco
Replied by spumco on topic Debugging source code of LinuxCNC - possible?
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?
Or maybe I misunderstood your question?
Please Log in to join the conversation.
3 years 4 months ago #272892
by zz912
I found bug. github.com/LinuxCNC/linuxcnc/issues/2453...uecomment-1570683157
Python is causing me the most trouble.
I have "parameter":
I think it works wrong.
I don't know what's driving it.
I know, that is come from:
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.
Replied by zz912 on topic Debugging source code of LinuxCNC - possible?
I am trying to understand how LCNC source code works.Or maybe I misunderstood your question?
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 don't know what's driving it.
I know, that is come from:
Code:
import linuxcnc
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.
3 years 4 months ago #272900
by Aciera
Replied by Aciera on topic Debugging source code of LinuxCNC - possible?
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.
3 years 4 months ago #272919
by phillc54
Replied by phillc54 on topic Debugging source code of LinuxCNC - possible?
possibly hard to find because of the 'emc' name:
github.com/LinuxCNC/linuxcnc/blob/master...ensions/emcmodule.cc
github.com/LinuxCNC/linuxcnc/blob/master...ensions/emcmodule.cc
Please Log in to join the conversation.
3 years 4 months ago #273369
by zz912
Replied by zz912 on topic Debugging source code of LinuxCNC - possible?
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?
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
