Author Topic: Program Arguments and Debugging  (Read 3166 times)

terranim

  • Guest
Program Arguments and Debugging
« on: December 12, 2007, 05:01:02 pm »
I've recently started using Code::Blocks on Windows and have got it compiling using the Visual Studio 2005 compiler. I've also installed the MS Debugging Tools for Windows in an attempt to get debugging working as well.

The problem is this:
I can configure program arguments from the Project menu, and these are used correctly when running my program from the build menu. However, if I try to initiate debugging then these program arguments are not being used! 

Have I missed a configuration option somewhere?

Regards,
Dan

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Program Arguments and Debugging
« Reply #1 on: December 12, 2007, 06:25:31 pm »
Did you chose the correct target under "Project -> Set programs' arguments...".
For me it works fine on Linux and W2k, both with gcc as compiler.

terranim

  • Guest
Re: Program Arguments and Debugging
« Reply #2 on: December 12, 2007, 09:34:53 pm »
Yep, chose the correct target.

Was wondering if it was something to do with using the cdb.exe from the MS Debugging Tools for Windows?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Program Arguments and Debugging
« Reply #3 on: December 12, 2007, 10:08:51 pm »
I just started downloading th MS Debugging Tools to look at it.
But it will need some time. I still have to use ISDN to connect to internet  :(.