Click here to Skip to main content
Sign Up to vote bad
good
I'm on a project where the code is currently being developed with QT Creator, using the QT framework. We've run into problem after problem, and we've effectively stopped development until we resolve the problem (one way or the other).
 
One approach is to force VS2010 to work for us (this is the preferred solution by a very wide margin).
 
We have to be able to compile using GCC, but my question is this - will the VS2010 debugger work on a GCC application?
 
Is there a better option that DOESN'T include QT Creator?
Posted 30 Mar '12 - 4:37

Comments
Code-o-mat - 3 Apr '12 - 5:54
Just a small addition to bazis' solution, you might try to run a virtual machine -if you have the hardware for it- using e.g. Virtual PC by Microsoft or VMWare player (both are free) to run the linux environment for compiling. Or even the other way around, run Windows and VS on the virtual machine under linux.

2 solutions

I've never used VS for developing Linux apps... everything in there is geared towards Windows. I'm pretty sure the debugger wouldn't work with a gcc compiled source (since it wouldn't necessarily understand all the build products/ debug information).
 
You may however, be able to use something like this:
http://visualgdb.com/[^]
 
Here's the same question asked before (stack overflow):
http://stackoverflow.com/questions/2206388/debugging-of-cygwin-gcc-compiled-programs-by-visual-studio-2008[^]
  Permalink  
You can use VisualGDB to build and debug Linux apps from Visual Studio, but you will need to decide whether you want to build them locally or remotely.
 
1. If you choose local build, you'll need to build a cross-compiler toolchain, that can be quite hard to do.
2. If you choose remote build, GCC and GDB will be run on the Linux machine over TCP/IP, but every compilation will last several seconds longer, as transferring the modified source files from Windows machine to Linux machine will take a bit of time.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 218
1 Sergey Alexandrovich Kryukov 159
2 Santhosh G_ 155
3 Richard MacCutchan 145
4 Maciej Los 136
0 Sergey Alexandrovich Kryukov 10,264
1 OriginalGriff 7,937
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,135


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 3 Apr 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid