Skip to content

TPI: Test new launch configuration "Python File with Arguments" #64

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

Closed
3 tasks done
paulacamargo25 opened this issue Jul 24, 2023 · 0 comments
Closed
3 tasks done

Comments

@paulacamargo25
Copy link
Contributor

paulacamargo25 commented Jul 24, 2023

Refs: #63

Complexity: 2

Author: @paulacamargo25

Create Issue


Prerequisites:

  • Install python version >= 3.7
  • Install the debugpy extension.

Part 1: Create right configuration

  1. Create a python file with a simple code.
  2. Go to Run and debug, then Create a launch.json file
  3. Select Debugpy > Python File with Arguments
  4. Make sure the configuration has been created correctly, that is, that the type is debugpy, the name.

Part 2: Debug with the launch configurations

  1. Run the configuration.
  2. Make sure a prompt appears asking you for the arguments you want to enter.
  3. Add some arguments and click enter. Make sure that your program has this new arguments. (You can check these variables using sys.argv)
  4. You can also try different scenarios, for example not sending anything.
@paulacamargo25 paulacamargo25 added this to the July 2023 milestone Jul 24, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 24, 2023
@paulacamargo25 paulacamargo25 removed the triage-needed Needs assignment to the proper sub-team label Jul 24, 2023
@lramos15 lramos15 self-assigned this Jul 25, 2023
@andreamah andreamah self-assigned this Jul 25, 2023
@joyceerhl joyceerhl self-assigned this Jul 25, 2023
@joyceerhl joyceerhl removed their assignment Jul 25, 2023
@lramos15 lramos15 removed their assignment Jul 25, 2023
@andreamah andreamah removed their assignment Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants