Skip to content

Disable "Unable to open file" during debug #811

@DigiAngel

Description

@DigiAngel

So I'm creating a very simple c++ app for learning on Ubuntu using c++ and gdb:

#include <iostream>

using namespace std;

int main ()
{
    int score = 0;
    cout << "Enter an integer score between 0 and 100." << endl;
    cin >> score;

    if(score >= 90 && score <= 100)
    {
        cout << "Awesome!" << endl;
    }
    if(score >= 80 && score <= 89)
    {
        cout << "Well Done." << endl;
    }
    if(score >= 70 && score <= 79)
    {
        cout <<  "Average." << endl;
    }
    if(score >= 60 && score <= 69)
    {
        cout << "Bummer." << endl;
    }
    if(score >= 0 && score <= 59)
    {
        cout << "Sad Times." << endl;
    }

    return 0;
}

When pausing and stepping into/over I have to hit cancel each time for things like this:

screenshot from 2017-06-09 06-14-00
screenshot from 2017-06-09 06-14-35

Is there a way to disable these so I can step through the program? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions