Skip to content

justMyCode stopped working after version 2024.10.0 #1785

Closed

Description

@musateduard

hi,

i'm using vs code with the python debugger extension and i noticed that recently stepping into 3rd party libraries stopped working. the version that i noticed this happening on is 2024.14.0 and the last version where i could get it to work is 2024.10.0 which is the one that i currently switched to. can someone have a look into this?

thanks

python version: 3.12.0
os version: windows 10 10.0.19045
vs code version: 1.96.0
current debugger version: 2024.14.0
last working version: 2024.10.0

launch.json config

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python: Tests",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "purpose": ["debug-test"],
            "console": "integratedTerminal",
            "justMyCode": false
        }
    ]
}

Activity

  1. hanlsin commented on Dec 17, 2024

    @hanlsin

    I also got the same issue.

    • OS: maxOS Sonoma 14.6.1
    • Python: 3.12.3
    • Python Debugger: 2024.14.0

    And I faced the same message "Frame skipped from debugging during step-in." like as RealGecko (@Real-Gecko) commented: microsoft/vscode-python-debugger#139 (comment)

  2. added
    needs repro
    on Dec 17, 2024
  3. rchiodo commented on Dec 17, 2024

    @rchiodo
    Contributor

    This only seems to reproduce with test debugging. Not sure why at the moment.

    If you use this for debugging a file, stepping into 3rd party libraries works fine:

            {
                "name": "Python Debugger: Current File",
                "type": "debugpy",
                "request": "launch",
                "program": "${file}",
                "purpose": ["debug-in-terminal"],
                "console": "integratedTerminal",
                "justMyCode": false,
                "logToFile": true
            },

    But this won't (when debugging tests)

            {
                "name": "Python: Debug Tests",
                "type": "debugpy",
                "request": "launch",
                "program": "${file}",
                "purpose": [
                    "debug-test"
                ],
                "console": "integratedTerminal",
                "justMyCode": false,
                "logToFile": true
            }

    The only difference I see in the launch is the 'rules' section of the launch args.

            "rules": [
                {
                    "include": false,
                    "path": "c:\\Users\\rchiodo\\.vscode-insiders\\extensions\\ms-python.python-2024.23.2024121701-win32-x64\\python_files"
                }
            ],

    The normal debug launch doesn't include those rules, the test debug launch does. I don't think that should be interfering though, but maybe there's a bug in the include matching.

  4. rchiodo commented on Dec 17, 2024

    @rchiodo
    Contributor

    Here's the example test I used:

    import pytest
    
    def test_debugstepinto():
        pytest.approx(1.0, 1.2) # Try stepping into this line. 
        print("after")
  5. added
    bug
    and removed
    needs repro
    on Dec 17, 2024
  6. rchiodo commented on Dec 18, 2024

    @rchiodo
    Contributor

    It also works for 3.11 or earlier. Must be a bug in the sys.monitoring code

  7. rchiodo commented on Dec 18, 2024

    @rchiodo
    Contributor

    Found the location. We're not using the 'justMyCode' setting in the sys.monitoring to code to check if we should filter things not in the project scope.

  8. added
    Fixed in next release
    on Dec 19, 2024
  9. rchiodo commented on Jan 15, 2025

    @rchiodo
    Contributor

    This issue should be fixed in the latest build of debugpy. It should ship with VS code in a future version of the Python Debugger Extension or you can install your own debugpy from pypi

  10. rchiodo commented on Jan 15, 2025

    @rchiodo
    Contributor

    Take that back, our release to PyPI failed when it looked like it succeeded. Fix will be coming after we resolve that problem.

  11. rchiodo commented on Jan 16, 2025

    @rchiodo
    Contributor

    PyPI release succeeded. v1.8.12 is now available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Fixed in next releasebug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions