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.
The text was updated successfully, but these errors were encountered:
@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.
Refs: #83
Complexity: 2
Author: @paulacamargo25
Prerequisites:
debugpy
extension.Part 1: Create right configuration
Run and debug
, thenCreate a launch.json file
debugpy
, the name.Part 2: Debug with justMyCode using different values
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.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
launch.json
, just add "justMyCode": true` to your debug configuration.launch.json
file, not in the settings.The text was updated successfully, but these errors were encountered: