D
D
Dmitry2015-09-26 22:33:03
Mono
Dmitry, 2015-09-26 22:33:03

How to fix incorrect debugging of C programs on monodevelop-gdb?

Having switched to Linux, I began to look for an alternative to VS to work with something similar to Intellisense for low-level development in C. I liked MonoDevelop.
Connected monodevelop-gdb and saw the problem - the behavior of the solution is different when run in debug and without it.
Simple example:

#include <stdio.h>
#include <stdlib.h>

int main (int argc, char *argv[])
{
  int  i;
  for (i = 0; i < 10; i++) 
    printf("%d ", i);
  fflush(stdin);
  return 0;
}

When building the program, everything works correctly.
When you start debugging, the output of numbers to the console is not performed, the debugger just passes by. At the same time, the output of lines works correctly. What is the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question