facebookarchive / atom-ide-debugger-python

Nuclide Python debugger for Atom
Other
7 stars 4 forks source link

Input() Is not handled. #9

Closed marsfan closed 6 years ago

marsfan commented 6 years ago

Whenever my code has an input() function, the debugger gets to that line, and stops (likely waiting for user input), however, the prompt for user input never appears in the debugger console, and I cannot input data into the field.

I have both atom-ide-ui installed, as well as this addon. Python code runs fine, with the exception of the input function.

ebluestein commented 6 years ago

If you launch the script from the debugger dialog, it's running without a TTY present, so there is no STDIN hooked up to read from. Any code that tries to read from STDIN will not work.

Goom11 commented 6 years ago

@Marsfan, this has now been remedied. https://github.com/facebook/nuclide/commit/788a7604e73c250bdd9c7a522b912fb12d855342.

You will need to run your program using the Launch dialog and select the "integrated terminal" option for the console dialog field.

marsfan commented 6 years ago

@Goom11 Has this been brought over the atom-ide as well? I do not see it in my launch menu.

image

Goom11 commented 6 years ago

I would think so. What version of atom-ide are you running?

marsfan commented 6 years ago

atom ide UI V 0.13.0. Atom-Debugger-Python version 0.7.3. No package updates listed.

Windows 10, not sure if that helps.