Hi, I have a question about remote debugger. Does it work like local debugger, when I can set/unset breakpoint and it will stop at that breakpoint? I setup remote debugger but debugger stops only after this line: import pydevd;pydevd.settrace(). Then I can step through my code, see variables etc. But debugger doesn't stop when I add breakpoint in Eclipse GUI.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After passing through the pydevd.settrace() it should stop in any breakpoints you have defined. You can even call pydevd.settrace(suspend=False) if you don't want it to stop at the settrace call, only on defined breakpoints. There is a catch though, by default it'll only trace the current thread, if you want it to trace other threads in this call, you have to call settrace(trace_only_current_thread=False).
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I have a question about remote debugger. Does it work like local debugger, when I can set/unset breakpoint and it will stop at that breakpoint? I setup remote debugger but debugger stops only after this line: import pydevd;pydevd.settrace(). Then I can step through my code, see variables etc. But debugger doesn't stop when I add breakpoint in Eclipse GUI.
After passing through the pydevd.settrace() it should stop in any breakpoints you have defined. You can even call pydevd.settrace(suspend=False) if you don't want it to stop at the settrace call, only on defined breakpoints. There is a catch though, by default it'll only trace the current thread, if you want it to trace other threads in this call, you have to call settrace(trace_only_current_thread=False).
Cheers,
Fabio
Thank you, very clear! :)