Debugging python code in remap.py, help

More
3 years 5 months ago #271378 by gerritv
Hi
I am trying to debug some code in remap.py. Tried VSCode and WingIDE. Neither will breakpoint on code in remap.py except when it first gets loaded.

Anyone have hints on what works?
I tried adding PYTHON_TASK = 1 to the ini file but likely that is not implemented in this version of linuxcnc. I think this is supposed to keep the interpreter task visible as a process?

Gerrit

 

Please Log in to join the conversation.

More
3 years 5 months ago #271379 by gerritv
Of course as soon as I asked the question, I found a variable to set in wingdbstub.py :-)

# (WINGDB_EMBEDDED environment variable)
kEmbedded = 1
Ref: wingware.com/doc/debug/debugging-embedded-code

Please Log in to join the conversation.

More
3 years 5 months ago #271382 by Vmax549
Are you trying to build a new tool change routine by remapping the M6 ?? If so there is an easy way to do that.

(;-) TP

Please Log in to join the conversation.

More
3 years 5 months ago #271390 by gerritv
Not so much new as adapting the router one to a gantry mill. I have an ER20 spindle. RapidChange is coming out with a rack to do tool changes. Much of what is in Tormach's remap for M6 stays the same.
Next big hurdle is Glade

Please Log in to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum