How to debug in Code::Blocks using the VS 2010 Express compiler

Asked

Viewed 426 times

2

I am using the Visual Studio 2010 Express. The problem is that Syntax Highlighting is very weak and the intellisense (feature that shows the attributes of objects in how much "you" type) also leaves to be desired (I don’t know if it’s only in the express version).

I’ve been using the COde::Blocks and enjoyed it very much, but with the Mingw, with the VS 2010 I managed to compile in Release but I couldn’t debug, because the Debugger doesn’t show where exactly the segmentation failure happened, it doesn’t even mark the line in the code.

I’ve always used the Mingw, I don’t know how to configure the Code::Blocks to debug with the VS 2010 Express, if possible.


Exemplo Configurações

  • Goes into Settings -> Compiler and Debuger... and edit your post containing what is on the tab Toolchain Executables

  • I just added...

  • 1

    You need to change the Bugger to the cdb because the GDB only works for the GCC. If you haven’t installed it, you can catch him here

  • 1

    @Kyllopardiun, thank you was just that :D.

  • 1

    @Kyllopardiun Consider adding a response

  • A suggestion not directly related to the question but with your comments on the question is to switch, if possible, from IDE to Visual Studio 2013 Express. Here Highlight and Intellisense are much better, as well as offering many other functions, bug fixes and some of the features of the latest C++ standard. (C++11)

  • 1

    @Tiagogomes, unfortunately I can’t do it now. My current machine is a bit old, its graphics drivers, are not supported on Windows 7, since the Visual Studio 2013 is only supported by Windows 7 or higher (according to the Microsoft website). But as soon as possible I intend to upgrade. Taking advantage of the comment, will there be a performance difference in the final program between the Mingw and VSXXX?.

  • @Walbertievaristo, you won’t see any really significant changes in speed. Anyone who says otherwise will probably do only some tests with compromised veracity and questionable quality. If your code is efficient there’s no reason to worry about it.

  • I decided to use the Visual Studio on account of the fact that the PhysX is only supported on it (I even tried to compile with Mingw, but without success).

Show 4 more comments

1 answer

1


GNU Debugger is not compatible with the Microsoft compiler and although it seems strange Microsoft provides the CDB Debugger as a item "optional" and therefore should be downloaded from their website:

CDB Debugger

It seems to me that they provide a car with the steering wheel as an optional item.

And configure the path in Code::Blocks in Settings -> Compiler and Debuger ->Toolchain Executables

Another option, although not so relevant the question would be to use the Visual Studio 2013 Express which actually improved a lot compared to 2010.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.