Debugging python code in remap.py, help

More
15 May 2023 00:13 #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 or Create an account to join the conversation.

More
15 May 2023 00:29 #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 or Create an account to join the conversation.

More
15 May 2023 02:12 #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 or Create an account to join the conversation.

More
15 May 2023 10:21 #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 or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.267 seconds
Powered by Kunena Forum