Author Topic: Debugging without a project  (Read 2238 times)

Offline TriTri

  • Single posting newcomer
  • *
  • Posts: 9
Debugging without a project
« on: March 08, 2008, 12:46:28 pm »
Hi

How I can use the debugger without a project/workspace like Dev-C++?

Thanks

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Debugging without a project
« Reply #1 on: March 08, 2008, 01:14:40 pm »
The only way to do that is by starting your program, then using the task manager to find out the program's PID, and finally selecting "attach to PID".
Note that it will only work if you have "generate debug info" enabled and "strip symbols" disabled in your default compiler setting.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline TriTri

  • Single posting newcomer
  • *
  • Posts: 9
Re: Debugging without a project
« Reply #2 on: March 08, 2008, 01:28:34 pm »
The only way to do that is by starting your program, then using the task manager to find out the program's PID, and finally selecting "attach to PID".

With the taskmanager!?  :shock:

Uhm... it isn't a good thing.
If I want to use the debugger I will get a project for each files?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Debugging without a project
« Reply #3 on: March 08, 2008, 02:18:58 pm »
Quote
Uhm... it isn't a good thing.
Yes, it is a good thing.
Quote
If I want to use the debugger I will get a project for each files?
Only if you want to use the debugger functionality integrated in Code::Blocks seamlessly. Or, any serious functionality for that matter.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."