Cannot find source for all files when remote debugging


When remote debugging, I have a call stack that includes frames in multiple modules.

When I double click on an entry, it typically opens the source at the line. However, some entries cannot find the file, even though the file is there and already open in VS.

I can set breakpoints in the files and they will be hit, but the files do not open.

None of the files appear in the Modules window - there are only entries for dynamically generated code objects. (I do have dynamically generated code on the stack, but most frames above and below still work.)

The only common feature I've noticed is that the __package__ value for frames that don't work have two or more parts (separated by dots). The ones that do work have a single name or are None.