I
I
Ivan Ivanov2014-03-15 17:52:33
C++ / C#
Ivan Ivanov, 2014-03-15 17:52:33

What is the difference between running without debugging and running with debugging?

Debugging - Finding the Cause of an Error
I can't find a use for it when I run debug/no debug, in both cases the compiler reports errors, then what's the difference?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
EXL, 2014-03-15
@Csklassami

First, the compiler always points out errors and ambiguities.
Secondly, not running with debugging, but compiling with debugging symbols.
In debug mode, special characters are added to the compiled executable binary, allowing you to see in which function the program crashed. The debug binary allows you to walk the stack of function calls, execute each processor instruction or C/C++ line in order. Set a breakpoint, etc.
Read more here

G
GavriKos, 2014-03-16
@GavriKos

And what is also important - there are differences in the initialization of variables with initial parameters. Concerns visualStudio.

A
AxisPod, 2014-03-18
@AxisPod

In general, the debug mode allows you to execute the program step by step, view the state of variables, memory, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question