Debugging python code in remap.py, help
- gerritv
- Offline
- Senior Member
Less
More
- Posts: 71
- Thank you received: 16
15 May 2023 00:13 #271378
by gerritv
Debugging python code in remap.py, help was created 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
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.
- gerritv
- Offline
- Senior Member
Less
More
- Posts: 71
- Thank you received: 16
15 May 2023 00:29 #271379
by gerritv
Replied by gerritv on topic Debugging python code in remap.py, help
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
# (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.
- Vmax549
- Offline
- Platinum Member
Less
More
- Posts: 341
- Thank you received: 28
15 May 2023 02:12 #271382
by Vmax549
Replied by Vmax549 on topic Debugging python code in remap.py, help
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
( TP
Please Log in or Create an account to join the conversation.
- gerritv
- Offline
- Senior Member
Less
More
- Posts: 71
- Thank you received: 16
15 May 2023 10:21 #271390
by gerritv
Replied by gerritv on topic Debugging python code in remap.py, help
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
Next big hurdle is Glade
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds