Author Topic: about debugger  (Read 2124 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
about debugger
« on: August 12, 2010, 11:47:11 pm »
I wrote a program , when run, it crashed. I compile it with -g , and use ide debugger to debug it . When F8 , it just report crash , (something sig???) , but It cannot locate in which line , it crashed.

I have to install drmingw , it reported which line cause crash. ( delete[] b;// of course , the real bug is not here).

can ide debugger locate the lines when program crash(with -g ) like vc++?

Offline advance-software

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: about debugger
« Reply #1 on: August 12, 2010, 11:58:32 pm »
I'm also having some difficulty getting the integrated debugging working (10.05/Linux).

It seems ok with a regular static application program, but I can't seem to debug our stuff which uses shared libraries. I'm using kdbg for debugging as a workaround.

Codeblocks for development + kdbg for debugging is the closest I've got to the 'visual studio experience'.

Thanks to the Codeblocks team for all your hard work. It's coming together nicely.

Offline advance-software

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: about debugger
« Reply #2 on: August 13, 2010, 12:00:51 am »
If you've got a crash on a delete but the pointer seems fine, you've got a memory stomp.

Comment out sections of code until it stops to isolate.

Memory diagnostics tools like purify might spot the stomp for you.