Providing terminal input? (nvim-dap
for python)
#1450
-
Newbie here. Perhaps this is an easy question for those in the know... but I'm drawing blanks after lots of searching + hands-on exploration: As I gain proficiency using my In short: The debugging stops awaiting my input, but I cannot continue thereafter. [If I run the same code directly from within a terminal (i.e., not within nvim-dap debugger), the input request is evident in the terminal and I can provide input and continue. But of course then I cannot use all of those valuable features of the debugger within nvim.] What might I be missing? Is this even possible with EDIT: BTW, I've tried to make proper sense of a post here, but am not grasping what I actually need to do: Lines 549 to 602 in d17d1bb |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
SOLUTION FOR BENEFIT OF OTHERS WITH SIMILAR STRUGGLE: I stumbled upon what is now an obvious answer... In order to enter data (i.e., respond to In retrospect, this is a head-bangingly simple keystroke to enter data when prompted, just as one would to edit a text file with nvim. But I could not find this tidbit of guidance anywhere. Hope this helps someone else down the road. Loving lazyvim. Cheers. |
Beta Was this translation helpful? Give feedback.
SOLUTION FOR BENEFIT OF OTHERS WITH SIMILAR STRUGGLE:
I stumbled upon what is now an obvious answer... In order to enter data (i.e., respond to
input()
prompts usingnvim-dap
with a python setup), simply enter the letteri
to enter standard nvim insert mode. This, of course, is to be done after navigating around to the terminal panel while debugging (e.g., usingshift + h,j,k,l
combinations) to reach the terminal console panel.In retrospect, this is a head-bangingly simple keystroke to enter data when prompted, just as one would to edit a text file with nvim. But I could not find this tidbit of guidance anywhere. Hope this helps someone else down the road.
Loving lazyvim. Cheers.