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

feat: Support breakpoint()'s / document debug steps #115

Open
visch opened this issue Sep 12, 2023 · 1 comment
Open

feat: Support breakpoint()'s / document debug steps #115

visch opened this issue Sep 12, 2023 · 1 comment

Comments

@visch
Copy link
Member

visch commented Sep 12, 2023

Having a seperate issue but I'm having a tough time debugging as my debug statements (adding breakpoint() ) don't work seemingly because of the use of joblib.parallel. Maybe just a writeup in the docs for how to debug this target / add debug statements?

Maybe I'm just a noob and I should use a different debugger

@pnadolny13
Copy link
Contributor

@visch I can't help with your specific ask but I use VS code for this and it works pretty well. For targets the args need to be slightly different than whats documented though to pipe in input data.

        {
            "name": "Python: File",
            "type": "python",
            "request": "launch",
            "program": "${workspaceRoot}/target_snowflake/target.py",
            "args": [
                "<",
                "test_input.json",
                "--config",
                ".secrets/config.json",
            ],
            "justMyCode": false
        }

I also find the VS code test debugger very helpful to step through failing tests because they get fairly complicated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants