c++ debug visual studio code example
Example 1: debugging c++
Run the code with gdb ./yourCode
Use 'run' command to start the program.
When it crashes use 'bt'(back trace) command to find where it happened.
Example 2: c++ check if debug or release visual studio
// visual studio c++
#if defined _DEBUG
//debug
#else
//release
#endif