support Python debugger
running with daemon and set breakpoint via import pdb; pdb.set_trace()
program can't pause on breakpoint and just restarts
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?
maybe related to this https://stackoverflow.com/a/18432456
@wader sorry, I dont get it. Interactive prompt only accessed if it can pause on breakpoint
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)
it's debug interface, you can go to python interpreter by typing interact and hit enter
