MS Visual Studio for Linux - compilation and debugging in VirtualBox

So is there any way to make Visual Studio
- compile a C ++ application for Linux using gcc.
- When I find the debug-run application in VirtualBOX (or other VM software) using gdb.

Edit: don't offer me another IDE - I know about Eclipse, KDevelop, NETBeans, Anjuta ...

+4
source share
5 answers

You might want to check out WinGDB . It sounds like you fit your target audience exactly.

Note 1: I have no experience with this product. I just know about its existence.

Note 2: If you decide to use this product, I would like to know about your experience.

Good luck ...

+3
source

Maybe a little late, but I found what I was looking for: NetBeans

I am on a Windows XP workstation and I am creating a Linux application. Since then I have used Visual Studio to edit / view a source located on a linux server through the samba share, an ad that starts a sleepers session is manually launched in the shell console.

Today I found NetBeans and I think it satisfies all my needs:

  • it asks for the host compiler and I can send the ssh host (with access to the private key, so don't worry about the passowrd dialog box)
  • it has excellent automatic recognition of compilation / debugging tools: it detected all the gnu tools installed on the linux server
  • he can build the project by automatically starting make with the button
  • it can analyze gdb commands and outputs to debug a linux application at runtime in a Windows environment.
  • it has a transparent plugin which is good for my clearcase project

Sorry I'm so enthusiastic, but at the first impression he has everything I was looking on the Internet (and I also stumbled upon this question) ... I will return here to adjust my impressions after everyday use ...

+2
source

The simple answer is sorry, but now .. but this may help you.

Eclipse supports the use of gcc with the CDK , however, the closest to Visual Studio is mono support, which has Visual Studio integration , but of course, this is if C #.

Although theoretically you could create a custom tool based on gnu2msdos that compiled the source and filed an error back to VS on the estate, which could help navigate around the errors, but I don’t know anyone who did this.

+1
source

Well, VisualGDB and WinGDB which are Visual Studio add-ons (~ $ 100, 30-day trial). I tried VisualGDB and the experience so far has been fantastic. I can debug a Linux application running on the Raspberry Pi as if it was running on Windows (this includes the Qt toolchain, which is not so easy to integrate).

The great thing is that you can very quickly cross-compile your own development PC and automatically download the application to your target device (or PC) via SSH and run everything with one F5 command.

+1
source

No. Not as delivered by Microsoft. Visual C ++ is not a cross-compiler, and visual studio support does not call other compilers.

0
source

Source: https://habr.com/ru/post/1341227/


All Articles