Closed
Description
Refs: #83
- macOS @connor4312
- linux @dbaeumer
- windows @karrtikr
Complexity: 2
Author: @paulacamargo25
Prerequisites:
- Install python version >= 3.7
- Install the
debugpy
extension.
Part 1: Create right configuration
- Create a python file with a simple code using external package.
- Go to
Run and debug
, thenCreate 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.