Am 04.03.2020 um 19:15 schrieb Gerhard Sittig: > On Wed, 2020-03-04 at 17:19 +0100, Helge Kruse wrote: >> How can I setup a debugger (I hope WinPDB, pdb would also be okay) on >> my Windows 10 PC? >> How can I attach the debugger to the running PulseView process, or can >> I start the program from the debugger? > > Have you seen the paragraph on WinPDB in the HOWTO page that you > refer to above? Yes, I did. Honestly I don't understand it. I looked for winpdb at http://www.winpdb.org/ and found the web site down. Searching for winpdb I found https://github.com/bluebird75/winpdb.
> Use the embedded debugger feature, because the > protocol decoder that is written in Python runs inside a host > application and thus cannot be used like a regular script or > standalone application. So added these lines import rpdb2 rpdb2.start_embedded_debugger("pd") This results in an error message when I start sigrok-cli: -- C:\Data>sigrok-cli -P i2c,exc80h -i r2.sr srd: ImportError: Failed to create exc80h instance: No module named 'rpdb2' srd: Traceback (most recent call last): File "C:\ProgramData\libsigrokdecode\decoders\exc80h\pd.py", line 56, in __init__ import rpdb2 ImportError: No module named 'rpdb2' Failed to instantiate protocol decoder exc80h. -- So I think, I need to add rpdb2 to the sigrok's python library. ProcMon (somthing similar to strace) tells me that sigrok-cli reads python from C:\Program Files (x86)\sigrok-cli\python34.dll. Further the file python34.zip is read. This file includes a lot of .PY files that would resists in the lib directory of a normal python installation. How can I make rpdb2 available to the python module that runs the decoder in sigrok-cli (or PulseView)? > Another detail to remain aware of is that sigrok decoders are > written in Python3. In the past there was some hickup with > getting WinPDB to work with that language version, can't tell how > this changed in the meantime. Shouldn't I use th python that comes with sigrok? > And I can't speak for development on Windows. Well that is the actual use case. But how solve I the problems mentioned above on a Linux environment? Well, unfortunately my questions still remain: - How can I setup a debugger (I hope WinPDB, pdb would also be okay) on my Windows 10 PC? - How can I attach the debugger to the running PulseView process, or can I start the program from the debugger? Best regards, Helge _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel