LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-23-2014, 09:25 AM   #1
yipengt
LQ Newbie
 
Registered: Dec 2014
Posts: 3

Rep: Reputation: Disabled
Unhappy CodeBlocks will not stop at the breakpoint


I synaptic codeblocks on my PCLinux OS. In the terminal, "su -" entered root's password In the terminal, "codeblocks" Created a project from the template, "console" -Hello World.

++++++++++++++++++++++++++++++++++++++++
main.cpp:

#include <iostream>

using namespace std;

int main()
{
cout << "Hello world!" << endl;
return 0;
}

++++++++++++++++++++++++++++++++++++++

Two targets" Debug and release.
I build debug.

-------------- Build: Debug in consolesimple (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -Wall -pg -g -I/usr/include/wx-2.8 -c /root/Documents/CodeBlocksSpace/consolesimple/main.cpp -o obj/Debug/main.o g++ -o bin/Debug/consolesimple obj/Debug/main.o -pg
Output file is bin/Debug/consolesimple with size 20.87 KB Process terminated with status 0 (0 minute(s), 0 second(s)) 0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I set the breakpoint at cout line.

I press F8, debug start. But the debugger did not stop.
debug window:

Building to ensure sources are up-to-date Selecting target: Debug Adding source dir: /root/Documents/CodeBlocksSpace/consolesimple/ Adding source dir: /root/Documents/CodeBlocksSpace/consolesimple/ Adding file: /root/Documents/CodeBlocksSpace/consolesimple/bin/Debug/consolesimple Changing directory to: /root/Documents/CodeBlocksSpace/consolesimple/. Set variable: LD_LIBRARY_PATH=.: Starting debugger: /root/Documents/CodeBlocksSpace/consolesimple/bin/Debug/consolesimple -nx -fullname -quiet -args /root/Documents/CodeBlocksSpace/consolesimple/bin/Debug/consolesimple done
Debugger finished with status 0

Can anybody help me why the debugger never stop at the breakpoint?

thanks.
 
  


Reply

Tags
codeblocks


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GDB Breakpoint Internals rupeshkp728 Programming 5 07-18-2012 06:31 AM
[SOLVED] How to cancel a breakpoint in gdb? PJYang2009 Linux - Software 3 06-02-2010 01:43 AM
KGDB breakpoint problem. droneprime Linux - Software 3 09-08-2009 12:03 PM
Breakpoint in 2.6.26.5 Kernel module debdut Linux - General 1 09-30-2008 08:56 AM
Breakpoint in 2.6.26.5 Kernel module debdut Linux - Kernel 0 09-29-2008 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration