microsoft / microsoft/PTVS

native/python debugger cannot find python source code

Open
#7,232 3 comments 0 reactions 1 assignee View on GitHub

@int19h is already working on this.

Since Dec 12, 2023.

bug debugging needs investigation
Dominant language
C#
Stars
2.6k
Forks
680
Avg merge
39m
Merged PRs (30d)
1

Description

This issue has been moved from a ticket on Developer Community.


I´m trying to debug python code being called from native code. At first the native/python debugger was not in the list of available debuggers of the native project, description of the (old) issue and workaround can be found here:
https://github.com/Microsoft/PTVS/issues/6712?ref=pythonrepo.com
With the workaround applied I can now start the native/python debugger and debug the native code. I cannot debug the python code though, instead the "source not found" window is being displayed. When I click on "Browse and find *.py..." it displays "Source search information" saying the source HAS been found and the debugger will use it - but it doesn´t switch to the code:

grafik.png

Visual Studio Version: 17.4.1 (up to date)


Original Comments
Feedback Bot on 11/21/2022, 05:26 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.