Hi All<br><br>I have been experiencing some problems with the debugger.<br><br>I have a piece of code that looks something like this:<br><br>#include <iostream><br><br>#include <string><br>#include <fstream><br>
<br>class TestParse<br>{<br>public:<br>    void parseConfigFile(std::string const& filename)<br>    {<br>        std::ifstream is(filename.c_str());<br>        <br>        std::string line;<br>        while(std::getline(is, line))<br>
        {<br>            if(line.empty() || line[0] == '#')<br>            {<br>                std::cout << "Empty line or comment" << std::endl;<br>                continue;<br>            }<br>
            if(line[0] == '[')<br>            {<br>                std::cout << "Section" << std::endl;<br>                continue;<br>            }<br>            std::cout << "Parameters" << std::endl; <br>
        }<br>    }<br>};<br><br><br>int main(int argc, char **argv) <br>{<br>    TestParse test;<br>    <br>    test.parseConfigFile(argv[1]);<br>    return 0;<br>}<br><br>When I step into the 'parseConfigFile' function the debugger stops the program stops as soon as I step from the opening brace line to the first line<br>
of the  function.<br><br>Running the program in GDB works as expected.<br><br>The output of the 'Show internal commands' in the GDB window is here:<br><br><a href="http://pastebin.com/4GhwmmB0">http://pastebin.com/4GhwmmB0</a><br>
<br>A courious thing: It indicates that a break 
point is attempted set in a file that belongs to another project (That 
project was not even loaded during debug session) <br><br>Any idea what is going on here?<br><br>--<br>- When the split is pulled, mr. Grenade is no longer our friend<br>