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

Debugging in docker containers #202

Open
jdittrich opened this issue May 3, 2022 · 5 comments
Open

Debugging in docker containers #202

jdittrich opened this issue May 3, 2022 · 5 comments

Comments

@jdittrich
Copy link

Story: As a reader of Implementing the Clean Architecture I would like to understand the code by stepping through parts of it it.

Problem: I was unable to set up a VSCode’s debugger to work with the docker containers (Another debugger is also fine – pudb, ipdb probably come without many dependencies)

@Enforcer
Copy link
Owner

Enforcer commented May 4, 2022

Hi,
let me check it out. I am not working with VS Code, but I'll do my best to see if I can make it work

@jdittrich
Copy link
Author

I am not working with VS Code

In case VS Code does not work well for you, another open source app should do it, too. I just think that PyCharm would work as docker support is only active in the pro version.

@titouanfreville
Copy link

I have a project running with VSCode and Devcontainer where I debug using debugpy.

I run the program through:

     - "python"
      - "-m"
      - "debugpy"
      - "--listen"
      - "0.0.0.0:8001"
      - "boy.py"

Then having VSCode listening to the debuger on 8001

Guess you can do smtg similar on local. ;)

@jdittrich
Copy link
Author

@titouanfreville Makes sense, I will try it. What I don't understand though – what/where is boy.py?

@titouanfreville
Copy link

titouanfreville commented May 24, 2022

what/where is boy.py?

Oups, sry. Thatcher from my on code.
Here it you should replace boy.py with auctioning_platform/web_app/web_app/app.py` but it would require a Little change in the file as it is made to run through flask command instead of main

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

No branches or pull requests

3 participants