Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nde on June 12, 2009, 01:51:12 pm

Title: how to debug when attaching to a process
Post by: nde on June 12, 2009, 01:51:12 pm
steps:
1. run a program
2. get PID
3. attach to process by PID, the C::B watches window shows "no symbol table info available"
4. the toolbar debug command "Next line/Next instruction/Step into/Step out" work properly, the watches window shows the variable name and value correctly now.
5. using "send user command to debugger" to send comands such as "c"(continue),"b"(set breakpoint),it works properly.
6. the toolbar debug command "Start/Continue/Run to cursor" will kill the process being attached and start a new program without warning.

It looks like something wrong with the toolbar debug command "Start/Continue/Run to cursor" when attaching to process , or do I miss anything?
Title: Re: how to debug when attaching to a process
Post by: nde on June 18, 2009, 05:56:55 am
environment: win7rc+vmware6.5+ubuntu9.04+cb8.02
Title: Re: how to debug when attaching to a process
Post by: Pecan on June 18, 2009, 01:59:05 pm
steps:
...
6. the toolbar debug command "Start/Continue/Run to cursor" will kill the process being attached and start a new program without warning.

It looks like something wrong with the toolbar debug command "Start/Continue/Run to cursor" when attaching to process , or do I miss anything?


I confirm this.
svn build  rev 5604 (2009-05-16T13:47:20.357384Z)   gcc 3.4.5 Windows/unicode
Title: Re: how to debug when attaching to a process
Post by: nde on June 19, 2009, 04:36:50 am
Upgrade to debian-build 5616 which jens provided and confirm the problem again.