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
Typing file.peek() in the watch window under debug mode prints this message while stepping in my code: file.peek(): Couldn't find method std::ifstream::peek.
I have added a .natvis file but I am still unable to see what the peek method is analyzing in the watch window.
I also get the error Unable to step out. Operation failed with error code 0x80004004 while trying to step out (SHIFT+F11) in my code which is probably due to gdb according to this post: #215. EDIT: I corrected the link.
OS : Ubuntu 16.04.2 LTS
VSCode : Version 1.14.2
gdb : GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
vscode.cpptools-0.12.2
Any ideas on how to have file.peek() in the watch window show the strings?
Here is a sample code along with my natvis and json files:
debugFct.cpp:
#include <iostream>
#include <fstream>
using namespace std; // using only on test code
int main(){
int numChar = 0;
char numb;
do {
++numChar;
if (file.peek() == '\n')
break;
cout << numb << " ";
}
while(file.get(numb));
return 0;
}
debug.natvis file placed in /usr/share/code/ folder:
I also get the error Unable to step out. Operation failed with error code 0x80004004 while trying to step out (SHIFT+F11) in my code which is probably due to gdb according to this post
This seems to be because you are attempting to step out on the last frame. in the Debug Console window, you should see the gdb error. The post you referenced doesn't seem to have anything to do with that error.
Made the ListProcesses() error message for the Docker 'Attach to Process' scenario more specific.
Before:
Failed to list processes.
'ps' command failed with exit code '126'.
Error:
''
Parsing '/proc' for process list failed.
Error:
''
After:
Failed to list processes.
'ps' command failed with exit code '126'.
Error:
''
Parsing '/proc' for process list failed.
Error:
''
Ensure the selected Docker Connection target is a Linux Container.
Typing file.peek() in the watch window under debug mode prints this message while stepping in my code:
file.peek(): Couldn't find method std::ifstream::peek
.I have added a .natvis file but I am still unable to see what the peek method is analyzing in the watch window.
I also get the error
Unable to step out. Operation failed with error code 0x80004004
while trying to step out (SHIFT+F11) in my code which is probably due to gdb according to this post: #215. EDIT: I corrected the link.Any ideas on how to have file.peek() in the watch window show the strings?
Here is a sample code along with my natvis and json files:
debugFct.cpp:
debug.natvis file placed in /usr/share/code/ folder:
launch.json:
settings.json:
Thank you
The text was updated successfully, but these errors were encountered: