You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See #440. One solution is to attach the debugger to a running executable. More info: lldb-vscode/README.md, option "attach".
Getting dap to handle user input currently requires appreciable user configuration as it's platform specific. If you don't want to spend time setting up all those "dirty details" then I would recommend you redirect stdin to a file or simply get user input from a file.
This is the minimal equivalent of your program that would get user input from a file (to keep the code concise, I omitted several status checks):
#include<fstream>
#include<iostream>intmain()
{
std::ifstream in("dat.txt", std::ifstream::in | std::ifstream::binary); // read from ./dat.txtif (in.is_open()) {
int var1 = 0;
in >> var1;
std::cout << var1;
in.close();
}
return0;
}
Using C-style freopen to redirect stdin is also feasible.
Version confirmation
Following prerequisites
Neovim version
NVIM v0.8.3
Operating system/version
macOS 13.2.1
Terminal name/version
iterm2 Build 3.4.19
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
Affected language servers
clang
How to reproduce the issue
Actual behavior
able to proceed to the next debugging
Expected behavior
No response
Support info
Logs
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: