Debugging with Visual C ++ Toolkit 2003 and CodeBlocks

I am working on a C ++ project using the free Microsoft Visual C ++ Toolkit 2003 (VC ++ 7.1 compiler) and IDE CodeBlocks. As you may know, this free package does not include a debugger tool, just a compiler and linker.

Is there a way to include a debugger in my current script? What are my chances of debugging this project without using Visual Studio?

+6
source share
2 answers

Since Code :: Blocks is your preference, and you want to use remote debugging, and you have experience working with the VC compiler, that way may be the easiest and smoothest solution. As suggested by @ user1610015, upgrade to VS2015 Community Edition , which certainly contains a standalone compiler (cl) and linker (link) . Of course, the CL will call the linker on your behalf, unless you specify otherwise .

Here is a comparison chart (select "expand all") of VS releases.

As a bonus, you will receive amazing updates compared to modern C ++ (11 and 14), the best remote debugging, the best generation of code, countless optimizations, improved reports and error analysis and others.

However, with respect to __ asm (on VS2013), you will be limited to x86 . When x64 is required, some choose to port this to intrinics , but many simply transfer the assembler to a separate .asm and a slight configuration change so that VS compiles the file:

  • Select a project (not. Sln)
  • From the menu, choose Project → Build Custizations ...
  • Check the box next to masm

If you intend to target x86 , no changes will be required. You did not specify a migration change with reference to VS2008, but, transferring a few large old projects from earlier VS compilers, I found that this experience would be pretty painless.

If your compiler code is not overwhelming, consider Clang and gcc (MinGW). I like to use CLion and use gcc to compile the same projects (CMake) for which I have a project and VS2015 solution. Sometimes I am surprised by some necessary corrections. I have not tried Code :: Blocks , but I suspect this is a similar exercise.

Good luck. I am sure you will crush him.

+1
source

I don't know about the Microsoft Visual C ++ Toolkit 2003, but the CodeBlocks IDE comes with a standard debugger (GDB / CDB). During installation, the wizard prompts for GDB as the default debugger.

If you installed the debugger and you have problems with the configuration, you can go to settings-> debugger and set the debugger path.

If the debugger is not installed, you can install it by selecting Plugins-> Manage plugins-> Install a new plugin

Cannot send apology images.

+1
source

All Articles