At the
<command>gdb
</command> prompt, type
<userinput>break main
</userinput>. This will tell the debugger to skip the preliminary set-up code in the program being run and to stop execution at the beginning of the program's code. Now type
<userinput>run
</userinput> to start the program— it will start at the beginning of the set-up code and then get stopped by the debugger when it calls
<function>main()
</function>.