Skip to main content

Linux - Build a C or C++ code with debug symbols

Use the -g option while building it so as to include the debug symbols.
This will help to put breakpoints on line numbers and/or function names while using grub debugger (gdb)

gcc -g cFile.c

g++ -g cppFile.cpp

Comments

Popular posts from this blog

Start with flask

1. Install python 2. Python comes with pip. Else install pip 3. pip install Flask 4. Create a file flaskFirst.py from flask import Flask app = Flask(__name__) @app.route('/') def index():     return 'Index Page' 3. Go to the path where the flaskFirst.py is present 4. export FLASK_APP=flaskFirst.py 5. flask run