Edit: Originally said that I cannot view contents of variables, which is wrong. I am able to view the contents of variables and debug by F10 stepping, etc. However, the breakpoint does not light up and there is no indicator showing which line in the file the debugger is currently stopped at.
With python-daemon installed on a linux virtual box and PTVS 2.0 alpha installed in windows:
- import daemon
- have a class that implements the run method
- pass that class into daemon.runner.DaemonRunner
- call do_action() on the result
- the run method will be called in its own daemon process
If I call ptvsd.enable_attach at the top of my file, I am unable to attach to the daemon process.
If I call ptvsd.enable_attach within the run function, I am able to attach to the daemon process and my breakpoint seems to be hit, studio will display the correct callstack, but it complains that the debugger cannot find the source file, and the breakpoint does not light up to indicate that it is hit. As I step through, the program, there is no indicator showing which line in the file the debugger is stopped in. However, I am able to view the contents of variables.