Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TPI: Test python debug type works using Python Debugger path. #23277

Closed
3 tasks done
paulacamargo25 opened this issue Apr 22, 2024 · 7 comments
Closed
3 tasks done

TPI: Test python debug type works using Python Debugger path. #23277

paulacamargo25 opened this issue Apr 22, 2024 · 7 comments

Comments

@paulacamargo25
Copy link

paulacamargo25 commented Apr 22, 2024

Refs: #23032

Complexity: 3

Create Issue


Requirements:

  1. Latest VS Code insiders
  2. Latest Python Extension insiders (pre-release)
  3. Latest Python Debugger Extension insiders (pre-release)

Verification steps

  1. Create a simple python file.
  2. Create a debug configuration for that file using type: "python" like:
{
     "name": "Python: Current File",
     "type": "python",
     "request": "launch",
     "program": "${file}",
     "console": "integratedTerminal",
}
  1. Run the debugger, set breakpoints and make sure that everything works.
  2. The debugger will open a terminal, make sure that the path to the debugpy/adapter is ms-python.debugpy-version and not the python extension.
Screenshot 2024-04-23 at 12 27 56 PM
  1. Try more configurations, and check that everything works properly. Here you will find more doc about the different config that we have.
@paulacamargo25 paulacamargo25 changed the title TPI: Test 'python' debug type works using Python Debugger path. TPI: Test python debug type works using Python Debugger path. Apr 22, 2024
@github-actions github-actions bot added this to the April 2024 milestone Apr 22, 2024
@sandy081
Copy link
Member

I am getting following error at step 4

Image

Here is my set up. I assume I have set it up correctly as mentioned in the description. Let me know if I am missing anything?

Image

Make sure that the path to the debugpy/adapter is ms-python.debugpy and not the python extension.

Can you please explain in detail, how to do this? Is there a documentation linked?

Try more configurations, and check that everything works properly.

What other configurations should we try?

I am sorry that I have to ask such questions. I am not an expert in this area. It would be great if you can provide some doc.

@andreamah
Copy link

I have the exact same questions and problems. I tried to replace ${file} with a relative path to the workspace root, and it still didn't work.

@andreamah
Copy link

@paulacamargo25 if you could put some more detail on how to test, that'd be great :)

@devinvalenciano
Copy link

I am in a similar position - I've gone through the steps I can complete, but I have the same follow-up questions as Sandeep.

@paulacamargo25
Copy link
Author

paulacamargo25 commented Apr 23, 2024

@andreamah @devinvalenciano @sandy081 There is an error with the activation in the last Python Debugger extension. Could you try downloading your platform version here. i also update the tpi with a better description.

@andreamah
Copy link

Tested with ms-python.debugpy-2024.5.11001012-linux-x64 👍

@andreamah andreamah removed their assignment Apr 23, 2024
@sandy081 sandy081 removed their assignment Apr 24, 2024
@sandy081
Copy link
Member

Tested with ms-python.debugpy-2024.5.11001012

@devinvalenciano devinvalenciano removed their assignment Apr 24, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants