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 global configuration for justMyCode #94

Closed
3 tasks done
paulacamargo25 opened this issue Sep 25, 2023 · 2 comments
Closed
3 tasks done

TPI: Test global configuration for justMyCode #94

paulacamargo25 opened this issue Sep 25, 2023 · 2 comments
Labels
testplan-item Test plan item/assignments for upcoming release

Comments

@paulacamargo25
Copy link
Contributor

paulacamargo25 commented Sep 25, 2023

Refs: #83

Complexity: 2

Author: @paulacamargo25


Prerequisites:

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

Part 1: Create right configuration

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

Part 2: Debug with justMyCode using different values

  1. By default the value of justMyCode is True. Set a breakpoint in the line that use the external package and try to jump inside the function. Check that it is not possible and that a message about the configuration will be shown.
  2. Go to the settings and update the value to False. Follow the steps mentioned above and now it should allow you to jump to the external code.

Part 3: Test updating config in launch.json

  1. You can also modified the value in the launch.json, just add "justMyCode": true` to your debug configuration.
  2. Run the same file and make sure the value being used is the one in the launch.json file, not in the settings.
@paulacamargo25 paulacamargo25 added the testplan-item Test plan item/assignments for upcoming release label Sep 25, 2023
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Sep 25, 2023
@paulacamargo25 paulacamargo25 removed the triage-needed Needs assignment to the proper sub-team label Sep 25, 2023
@paulacamargo25 paulacamargo25 changed the title TPI: Add global configuration for justMyCode TPI: Test global configuration for justMyCode Sep 25, 2023
@bhavyaus bhavyaus added this to the September 2023 milestone Sep 26, 2023
@dbaeumer
Copy link
Member

@paulacamargo25 step 2 is misleading. When you create a launch.json a property "justMyCode": true which always wins over the setting. So you can't step into the code by changing the settings value. I recommend to update the description or IMO even better to not generate a launch.json with that property since it is the default anyways.

@dbaeumer dbaeumer removed their assignment Sep 26, 2023
@karrtikr
Copy link
Contributor

Go to the settings and update the value to False.

It would be helpful if you specify the setting name here ("debugpy.debugJustMyCode") as not everyone is aware of the setting,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testplan-item Test plan item/assignments for upcoming release
Projects
None yet
Development

No branches or pull requests

6 participants