I've been working on small UI stuff in a VS Code extension and I think the documentation is great overall. But recently I've been asked to link VS Code to a C++ server so that it can automatically communicate with the c++ server. I've been trying for a few days with the help of Mock Debug but I can't make it work...
I don't understand what are "the core classes" or "core steps" in linking VS Code debug with an external DAP server.
I mostly tried to work in the package.json file. From what I understood what's needed :
In package.json/contributes
-> debuggers : is where you declare your debugger and link it to a language. Then you can setup the custom configurations for launch.json.
-> The debuggers/program parameter is intringing to me, it should give the path to the Debug Adapter executable... In my case would it be a typescript that opens a connection to the actual c++ DA server?
I'm sorry if this thread is disjointed, I'm quite a chaotic programmer (fancy saying for completely disorganised) but I really need a helping hand...
I'm developing with National Instruments' CVI LabWindows platform. It's a very old IDE and they don't seem to have any plans to update it.
debugging one of my LabWindows projects
I'd love to use VS Code to do my development, which I could since LabWindows is pure C language with added proprietary hardware libraries, and a binary GUI editor layer.
But it would be cool to compile and debug inside VS Code too. Assuming I have a paid license for LabWindows, and that their command line tools for their debugger is feature rich enough, how do I get started making an extension?
I need to add some platform specific code and I would like to have a possibility to show quick kotlin documentation when press ctr+q. How can I achieve that, other than opening a kotlin file through file -> open?
I have found an answer by accident - in settings -> languages & frameworks there's an experimental feature, which helps to show quick documentation.
Is there a plugin on eclipse which helps to check the code written in Eclipse Editor against some coding best practices ?
The features which i am looking for exactly are :
The violations of coding standards should appear as warning on the Eclipse Editor itself against the line which violates it. (Same way warnings are shown using the yellow triangular symbol)
The coding standard itself should be easily editable ( I may be able to include or exclude some rules ). I want it to be tailored according to my organization's coding standards.
Should check against standards in .java , .jsp and .js files.
There are tools which can help in achieving that but they need to be run explicitly and can be run only when code is written completely.
I want the developers to be notified the instant they are going against coding standards.
You can do it without a plugin. Eclipse can generate warnings based on style problems:-
Java -> Compiler -> Errors/Warnings
You can even get it to auto-format when files are saved:-
Window -> Preferences -> Java -> Editor -> Save Actions -> Format Source Code
WARNING: Enforcing this will annoy developers.
Also see Eclipse custom code style parameters
i'm using windows xp what would be a good c compiler?
i want to learn c so that i can better understand the objective-c language for the iphone.
i have a great background in php so hopefully something will make sense
ps:
what sections should i put more focus on when learning c in getting prepared for objective-c?
thanks
Duplicate:
c compiler for windows
C/C++ Compiler for windows
Which C Compiler do you recommend for windows
GCC is a free, open source, high quality, compiler. You can get it with cygwin.
Microsoft makes a C compiler that comes with Visual Studio, which is Microsoft's integrated development environment. You can download the "Express" edition of Visual C++ to give it a try.
Also, Intel makes a good compiler.
The iphone uses the gcc compiler. This is available for windows using MinGW/MSYS or other compatibility packages.
Apple has Objective-C tutorials which assume very little C experience; I'd be tempted to just dive in. If you get stuck, then get K&R. (I don't know if php has types and pointers, otherwise you'll get stuck straight away)
Visual C++ express is free, has a really nice IDE and compiles C code.
I'd use gcc by downloading cygwin.
Gcc is the way, you can install mingw which is a native windows port.
I also recommend gcc, but don't get too used to GNU extensions such as asprintf() if you want to write portable code. On some systems, strdup() is lacking, amongst many others. The compiler itself won't spoil you, but glibc will.
On the one hand you have POSIX, on the other hand you have ISO/c89/c99, then you have gcc.
I highly recommend gcc, with the above warnings in mind while you continue to explore other compilers. For instance, it can be fun to code around the limits of Lestes if you enjoy dabbling in C++.
In any event, gcc is very powerful, boasts superior optimizations and can be so -pedantic that you think its out to get you. But, don't forget about portable code .. or where/if portability kludges are actually appropriate.
Cygwin is also highly recommended, as DasBoot posted.
You could have a look at this free e-book Programming in C in 7 days as a starter where they use Dev-CPP for windows
Note
It includes only the first 7 lessons of the more complete e-book “Quickly
Learn Programming in C”
Normally I would recommend Pelles C for programming C in windows. It is a good user friendly programming environment that has the best c99 compliance that i've seen... However, here I'm going to tell you that you should use gcc right off but not on windows. Use Linux (maybe Ubuntu?).
The reason I say to use gcc on Linux is because you want to develop for the iphone. I would suggest getting comfortable with the tools you are likely to use. I don't imagine you using the official iphone sdk (you'd need a Mac for that) so I think you'll be using the free tool chain. It does not compile on windows so switch to a supported platform and get comfortable with the tools.
I personally recommend MinGW. You can download it off SourceForge. It even works on a 64 bit configuration. I don't think it supports objective C. However, I found it useful while running C code on windows.
I don't have any idea about objective C and what parts of C you need to focus on while learning so as to make the transition easy. I'll leave that to someone with more experience.
gcc included in cygwin is a perfect first choice if you want to learn C on your Window XP platform. cygwin/gcc includes a basic Objective-C environment.
Anyway if you want to target iPhone, the best move would be to change to a Mac platform (which can natively run XP for smoothing the switch) in order to get Xcode, the Mac and iPhone development environment. You will also be able to learn CocoaTouch, the iPhone OS.
In parallel, you can register to the iPhone Dev Center for accessing all resources for learning iPhone programming.
If you're after a compiler that can compile both C and Objective-C, a GCC port to Windows is probably your best bet.
When learning C, concentrate on pointers, arrays, strings and memory management - those are the things that will trip you up coming from a managed environment of any kind.
The best thing about gcc is that it has a lot of features and supports the latest language standard. But for fast compilation and a nice programming environment you can't beat Lcc-Win32.
GCC is the cheapest compiler, Intel the fastest, MSVC the most featured.