How to pretty-print STL containers in GDB?

It just works on Ubuntu 17.04 Debian seems to have finally integrated things properly now: main.cpp #include <map> #include <utility> #include <vector> int main() { std::vector<int> v; v.push_back(0); v.push_back(1); v.push_back(2); std::map<int,int> m; m.insert(std::make_pair(0, 0)); m.insert(std::make_pair(1, -1)); m.insert(std::make_pair(2, -2)); } Compile: g++ -O0 -ggdb3 -o main.out -std=c++98 main.cpp Outcome: (gdb) p v $1 = std::vector of … Read more

VS2008: Unable to start debugging, Remote Debugging Monitor has been closed

If you are on a 64bit OS then you are ‘silently’ remote debugging. Devenv runs in WoW64 (meaning it’s a 32bit process) … when you hit F5 is launchs msvsmon.exe as a 64 bit process and sets up a communication channel between devenv and msvsmon “silent remote debugging” to allow debugging your 64 bit process. … Read more

Visual Studio 2015 diagnostics tool does not support current debugging configuration

So I resolved my issue. The Diagnostic Tools window currently does not support: Windows Store projects that are using JavaScript Windows Store projects that are running on a Windows Phone Debugging with Use Managed or Native Compatibility Mode In my case I had ‘Use Managed Compatibility Mode’ enabled. To change this go to the following … Read more

Is it possible to temporarily disable an index in Postgres?

You can poke the system catalogue to disable an index: update pg_index set indisvalid = false where indexrelid = ‘test_pkey’::regclass This means that the index won’t be used for queries but will still be updated. It’s one of the flags used for concurrent index building. Note that I’ve only done a quick test to see … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)