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

support Python debugger #80

Open
mozartilize opened this issue Dec 8, 2019 · 5 comments
Open

support Python debugger #80

mozartilize opened this issue Dec 8, 2019 · 5 comments

Comments

@mozartilize
Copy link

mozartilize commented Dec 8, 2019

running with daemon and set breakpoint via import pdb; pdb.set_trace()

program can't pause on breakpoint and just restarts

@mozartilize mozartilize changed the title support Python debugger, import pdb; pdb.set_trace() support Python debugger Dec 8, 2019
@wader
Copy link

wader commented Dec 8, 2019

Can be reproduced with:

{
    prep: python -c "import pdb; pdb.set_trace()"
}

I would guess this might be because stdin isn't an interactive tty for the python process.

@mozartilize were you expecting a interactive prompt or how some other behaviour?

@mozartilize
Copy link
Author

maybe related to this https://stackoverflow.com/a/18432456

@mozartilize
Copy link
Author

@wader sorry, I dont get it. Interactive prompt only accessed if it can pause on breakpoint

@wader
Copy link

wader commented Dec 9, 2019

Ah i was a bit unclear. I just noticed that if i run the command without modd i get a prompt:

$ python -c "import pdb; pdb.set_trace()"
--Return--
> <string>(1)<module>()->None
(Pdb)

@mozartilize
Copy link
Author

it's debug interface, you can go to python interpreter by typing interact and hit enter
Selection_060

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

2 participants