Author Topic: Codeblocks integrate with Visual Toolkit 2003  (Read 15243 times)

rennie84

  • Guest
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #15 on: April 11, 2006, 09:02:03 pm »
squizz, I followed that, and the debugger seems to run, but it doesnt actually run my program :( Here is the debugger output:

Selecting target: Debug
Compiling: done
Adding source dir: D:\Source\snn\
Adding source dir: D:\Source\snn\
Adding file: snn.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger finished with status 1

And then it just finishes. Am I missing something?

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #16 on: April 11, 2006, 09:36:40 pm »
@rennie84 - right click on your project (project tree), click Build options and check if "Produce debugging symbols" (or similar - I don't use visual toolkit...) is checked. If it is not, check it and rebuild whole project and then try to debug again.
If this doesn't help, please post more details (version of C::B & operating system you use), so someone who actually uses Visual Toolkit can help you.
« Last Edit: April 11, 2006, 09:38:34 pm by squizzz »
this space is for rent

rennie84

  • Guest
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #17 on: April 11, 2006, 09:52:30 pm »
Yeah I tried that to no evail :p

Im using the latest nightly build with DMD as the compiler - Im actually using Code::Blocks for a D project.

Ive pointed the Debugger to dbc.exe from the Platform SDK.

The problem seems to be that my program isnt actually getting launched by the debugger :(

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #18 on: April 11, 2006, 10:04:24 pm »
only GDB and CDB as debuggers are supported !

rennie84

  • Guest
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #19 on: April 11, 2006, 10:07:48 pm »
oops sorry thats what I meant - im using cdb.exe

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #20 on: April 11, 2006, 10:41:45 pm »
cdb.exe is the one from MS isn't it ?
I always used GDB in CB so no idea how well it goes with cdb.
Can cdb do the D language ?

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #21 on: April 11, 2006, 10:49:37 pm »
Might be that C::B doesn't pass some compiler switches (like debug switch) for DMD compiler correctly...

You might try to set Compiler logging to "Full command line" (Settings->Compiler and debugger->Other) and see what parameters are used to invoke compiler. Compare how compiler calls look like when "Produce debugging symbols" property is set and when it is unset. If there is no difference between these two, it's possible that binary being produced by compiler is not suitable for debugging.
  (false alarm - this seems to work correctly)

Oh, and that
Quote
Can cdb do the D language ?
is also very good question...
« Last Edit: April 11, 2006, 11:15:34 pm by squizzz »
this space is for rent

jozzzz

  • Guest
Re: Codeblocks integrate with Visual Toolkit 2003
« Reply #22 on: April 12, 2006, 08:12:06 am »
 I am enter paths :
Debugger:F:\Program Files\Debugging Tools for Windows\cdb.exe
Additional Paths: F:\Program Files\Debugging Tools for Windows\

but no way