I make a linux Executable with
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
char sz[] = “Hello, World!”; //Hover mouse over “sz” while debugging to see its contents
cout << sz << endl; //<================= Put a breakpoint here
int a1 = 0;
while(1)
{
a1++;
}
return 0;
}
Then I click debug attach to project , i select VisualGDB and the IP adress , i select the linux process from the list and then i get the error :
…
gdb –interpreter mi –args “/tmp/VisualGDB/c/VisualGdb/LinuxProject1/LinuxProject1/Debug/LinuxProject1″
&& export MANOPT=”–nh” && export LANG=”en_US.UTF-8″ && “gdb” –interpreter mi –args “/tmp/VisualGDB/c/VisualGdb/LinuxProject1/LinuxProject1/Debug/LinuxProject1″‘ as root on xxx.yyy
Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.
-
This topic was modified 6 years, 5 months ago by b.timofte.