Category : debugging

I was trying to handle different line-ending. But as I expected the output was different than expected. test4utf8mac.srt is a subtitle file of SubRip format having line-ending of the CR type(i.e ‘r’). #include<iostream> #include<fstream> #include<string> using namespace std; int32_t main() { #define NLINE "Default" string str; string delimiter; std::ifstream chk("./srt/test4utf8mac.srt",ios::binary); if(!chk.is_open()) { cout<<"file not opened"<<endl; ..

Read more

Intellij automatically generates read-only debug options that include dt_socket but we are using this ancient jvm that "may" only support dt_shmem on windows. Just want to know for sure that it will never work with the version of intellij we are using. rtfm says https://www.ibm.com/docs/en/sdk-java-technology/8?topic=applications-debugging-java Secondary followup question. Is it possible to run websphere 8.5.5.19 ..

Read more

This is an exam question I got. It needs us to write down the output of this code: #include <iostream> #include <string> using namespace std; class Hello { protected: string nameString; public: Hello(string name) :nameString(name) {}; string getName() { return nameString; }; virtual string hello() = 0; }; class Ohio :public Hello { public: Ohio(string ..

Read more

I am launching cdb.exe (Microsoft Console Debugger) as a child process of my C++ application using the following method: https://stackoverflow.com/a/66147288/6531253 cdb.exe, in turn, launches a separate application to debug. This mostly works fine and I get the debugging output from cdb, but I do not receive any output from the process it is debugging through ..

Read more