Skip to content

Solved: Debugging into hardware implementations (e.g. ScanningProbeInterface) #86

Locked Answered by gemmell
gemmell asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, no problems once you do this:
import debugpy
add debugpy.debug_this_thread() to the top of all the functions in your device. e.g. for the scanner_probe I'm implementing it's:

 def configure_scan(self, scan_settings):
        debugpy.debug_this_thread()

        with self._thread_lock:
           ...

def start_scan(self):
        debugpy.debug_this_thread()

        with self._thread_lock:
           ...

It is 100% reliable hitting breakpoints after this.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gemmell
Comment options

Answer selected by gemmell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants