User forums > Using Code::Blocks
Debugging cursor disappearing
Léa Massiot:
--- Quote from: oBFusCATed ---/usr/lib/libstdc++.so.6 is shared library and there is no source for it...
--- End quote ---
I'm sorry but I do not understand what is so obvious in your answer...
If it's not too much asking, could you answer "Question 1" and "Question 2" in my previous post?
Could you try to explain why the fact that "libstdc++.so.6 is a shared library and there is no source for it" can explain such a behaviour...? I mean, what is this message: "Unknown file: /usr/lib/libstdc++.so.6"? This file exists!
Please forgive me if I'm missing an obvious point!
Thanks and regards!
--
Léa
oBFusCATed:
If there is no source, the file could not be opened in C::B. C::B is telling you that it doesn't know the type of the life => it is not a source file and thus it cannot open it in the editor.
Q1: No, if inside the function you catch it
Q2: The stdout/stderr of your program is printed to a terminal on linux/macosx and to cmd.exe on windows. This works only if the target type is "console"
Léa Massiot:
@oBFusCATed : Thank you very much for answering my questions.
--- Quote from: oBFusCATed ---If there is no source, the file could not be opened in C::B. C::B is telling you that it doesn't know the type of the life => it is not a source file and thus it cannot open it in the editor.
--- End quote ---
Ok. Thank you for explaining.
--- Quote from: oBFusCATed ---Q1: No, if inside the function you catch it
--- End quote ---
- Well, I've added a bp in front of 'std::cout << "Something went wrong."' inside the "catch(...)" block
=> but this bp is NEVER reached...
- I've also added a bp in front of 'std::cout << "END OF aMethod()"' after the try/catch block at the end of the method
=> and this bp IS reached...
=> So an exception is thrown but is not caught!
Really I'm confused (maybe I shouldn't be). I guess I'm missing something...
--- Quote from: oBFusCATed ---Q2: The stdout/stderr of your program is printed to a terminal on linux/macosx and to cmd.exe on windows. This works only if the target type is "console"
--- End quote ---
Ok. So, to have the console pop up, here is what I did:
--- Code: ---"Project -> Properties -> Build targets -> Debug"
"Type: Console application"
I checked "Pause when execution ends".
(If this check box is unchecked, no console actually pops up).
--- End code ---
Best regards,
--
Léa
Léa Massiot:
Hello again,
Apart from the fact that I do not really understand that exception being thrown and not caught or whatever, it's now working properly with the settings you suggested. So thank you very much for your help.
Best regards,
--
Léa
Léa Massiot:
Again. Sorry. A few last questions:
1) Why did you ask me to install a nightly build? To benefit from the latest functionalities?
How different is a nightly build from the sources I downloaded and installed at first? (Actually, this one is better, for example it's really nice to be able to double-click to get the view full-window!)
2) If I want to get the next nightly build, how can I do that? Like this?
--- Code: ---> apt-get remove codeblocks codeblocks-contrib
> apt-get update
> apt-get install codeblocks codeblocks-contrib
--- End code ---
Best regards,
--
Léa
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version