I have created a python script in VS, now I want to attach this file to NX like in c# we do by attach to process. Can anyone help me how can I attach .py file to NX and debugg it.
Are you using the PTVS plugin in VS?
If so, edit the project properties
Once a break point is set and NX is running, pick Debug, Attach to Process
Run the Python script you want to debug from NX using “Journal Manager”. If there are multiple scripts, run the script which you added as startup script in Python project creation.
Following these instructions, my breakpoints are disabled at the end; they pass from red disk to red circle with a warning : "The breakpoint will not currently be hit. No symbols have been loaded for this document."
In facts, this is the case : they are not hit.
Concerning the start-up file field, I'm not sure what to enter : module file name, module path, module qualifier name, module name ?
Concerning modules symbols, I've got the list at you disposal.
Thanks a lot by advance.
For batch mode, the debugger in PyCharm works with breakpoints (tested on Windows and Linux, NX11).
For interactive, i.e. attaching to a running NX session, I had this working in Eclipse, but inspecting the stack was not possible (tested on Linux only, NX10). (In PyCharm, this requires the paid version, but a colleague said it was working for him)
Is this something that is supposed to work with a real stack inspection in VS? Maybe even interactive console? That would indeed be very useful.
I think all the setup information is in this thread here
Hope this helps!