User forums > General (but related to Code::Blocks)

Windows 10 Debugger is not working :(

<< < (2/3) > >>

ZCoder:
I wrote a simple code to check debug, but this time not worked too. Code:

#include <iostream>
using namespace std;
int a,b;
int main()
{
    cin>>a>>b;
    a=a+b;
    cout<<a<<" "<<b<<endl;
}

When I run it without debugger it works but with debugger when I enter, for example 4 5 , it does nothing, exits from the program.
I think that it is not a programming problem.

oBFusCATed:

--- Quote from: stahta01 on September 16, 2016, 05:49:18 pm ---The CB Dev that does debugger stuff; always says to turn on the debugger log and the post the log.

I am NOT a person who uses the debugger; so, can't help you do this steps.
Settings -> Debugger settings
Checkmark "full (debug) log"

CB Version and debugger version is also info they normally want to have.

Tim S.

--- End quote ---

ZCoder:
This is my debugger log.

ollydbg:
HaHa, you are trying to debug a "release" version of your executable.
See the log:

--- Quote ---Reading symbols from C:\Users\ZCoder\Desktop\C++\for_debug\bin\Release\for_debug.exe...(no debugging symbols found)...done.
--- End quote ---

You need a "debug" version of your executable.
My guess is "C:\Users\ZCoder\Desktop\C++\for_debug\bin\Debug\for_debug.exe"

ZCoder:
How can I change this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version