You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a python file with a simple code using external package.
Go to Run and debug, then Create a launch.json file
Select Debugpy > Python File
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
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.
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
You can also modified the value in the launch.json, just add "justMyCode": true` to your debug configuration.
Run the same file and make sure the value being used is the one in the launch.json file, not in the settings.
Paula (@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.
Activity
[-]TPI: Add global configuration for justMyCode[/-][+]TPI: Test global configuration for justMyCode[/+]dbaeumer commentedon Sep 26, 2023
Paula (@paulacamargo25) step 2 is misleading. When you create a launch.json a property
"justMyCode": truewhich 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.karrtikr commentedon Sep 26, 2023
It would be helpful if you specify the setting name here (
"debugpy.debugJustMyCode") as not everyone is aware of the setting,