Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Windows Linux VS2010
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:37am
Comments
Code-o-mat at 3-Apr-12 5:54am
   
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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
v3

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 405
1 CPallini 375
2 BillWoodruff 314
3 George Jonsson 279
4 OriginalGriff 227
0 OriginalGriff 5,030
1 CPallini 4,225
2 Sergey Alexandrovich Kryukov 3,604
3 George Jonsson 2,831
4 Gihan Liyanage 2,386


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 3 Apr 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100