(Go) How can I use GDB debug on IntelliJ IDEA? - intellij-idea

I'm developping golang porjects using IntelliJ IDEA 15.
In advance I installed GDB to debug on mac.
Then I want to debug golang projects using GDB on IntelliJ IDEA.
However, I could't find how I can do that.
If someone know, please give me a advise.
Thank you in advance.

As of today, no, you cannot. However the plugin comes with Delve integrated which makes the debugging experience better for Go apps (if you are on the supported platforms by delve). See the debugger link: https://github.com/derekparker/delve
Once GDB will properly support Go apps, things might change of course.

Related

How I can use the JavaFX framework?

firstly, I want let you know how useful this community is for me, I was stuck on an error
`Error: JavaFX runtime components are missing, and are required to run this application`
and thanks to this answer I actually solved: link
However I've a couple of questions. I noticed that IntelliJ doesn't change the configurations (Like set the VM option and pick the right library for the javaFX project), so each time I've to create a new JavaFX11 or 12 project I've to being throw all the manually settings again.
There's a way for set a "default behaviour" for the IDE ? It's really cumbersome.
The second question is, how I can use all the beautiful framework that the developer community offer for JavaFX? I've seen on openjFX a couple of interesting framework like TilesFX or CalendarFX but there's no information on how implement them on my IDE neither on GitHub nor here.
I have seen that most of them uses Gradle files, but honestly I don't have the faintest idea of what this kind of file does and how implement it on IntelliJ. Thank's to everybody.
Run the project with a more recent JDK like JDK11, for example.
If it does'nt work, you probably forgot to change the JDK of your builder in IntelliJ!
Open the settings and follow the path as bellow:
FOR MAVEN
FOR GRADLE

How to Use Intellij idea14.0.2 to Debug the golang?

The Debug button is disable, Shift+Alt+F9 will show this:
How to properly configure the debug page?
Update. The Go plugin supports Delve on Linux and Mac since September 2015 and on Windows since January 2016.
Original answer:
Currently we are dropping support for the debugger with gdb as it's very hard to use and unstable. Please see the go docs for gdb debugging
However, there are efforts in getting the open-source Delve debugger support for IDEs from which IDEA will benefit as well.
Please bug the Go team to support Delve or another debugger in order to have a stable solution and then integration with IDEA could be done.
thanks ,solved it.
Intellij Config is not right
The debug feature was introduced by issue 25, and commit 3a21e14
The correct way is to implement the debugger interfaces in inteliij and to hook them to a running gdb process.
(Here is an example of manually calling gdb to debug a Go program; using the options -c -gcflags '-N -l': not sure if the -l would matter as it is missing from the OP's screenshot "Go builder arguments")
It is possible the debug button is disabled if no gcc is configure for the Go debug process to use.
Note also that since PR 644:
"Debug" is disabled, if "Build Before run" is not enabled.
This should fix the problem, when gdb wants to run a not existing executable, because the outputDir is not set.

GNUStep Getting Started

I downloaded GNUStep and installed it, however I am not sure where I can find an IDE. does anyone know what programs serve as a GNUStep IDE/where to get them? Failing that, does anyone know of a tutorial on how to create and compile a basic GNUStep program?
Well my experiences with that are devastating. ProjectCenter the IDE distributed for GNUstep does not work here at all the debugger intergration is well not existant. But that's what you get with GNUstep. There is Gorm as interface builder and ProjectCenter. Not more. That's very discouraging. The best you can do with Objective-C is currently having a Mac in some form and use XCode. That's the best you can get currently, and I expect that won't change in any forseeable future.
Now you should step back and just use the "plain" old Makefile route. There is a somewhat very rough tutorial about GNUStep makefile starting somewhere below
http://wiki.gnustep.org/index.php/User_Guides
Regards
Friedrich
As Friedrich already mentions in his post above there is Gorm for creating interfaces and ProjectCenter as IDE (gdb integration is worked on as far as I know).
For compiling GNUstep programs you are best of using GNUstep-make. You can find some recently updated tutorials here:
Basic GNUstep-make tutorial
More advanced GNUstep-make tutorial
And there is always the whole bunch of newsgroups, irc and mailinglists where you can usually get quick answers to your questions. Maybe not on IRC currently.
You can try to make eclipse
work with gnustep/msys/mingw:
http://wirecode.blogspot.com/2007/11/objective-c-and-eclipse.html
http://djsilenceboy.wordpress.com/2012/02/13/install-minggw-and-gnustep-for-ccobj-c-for-windows/

Intellij idea javascript code assist/completion not working even after adding the libraries

I just came to know about this cool feature of intellij idea where in settings you can libraries and code assist/completion will work for the library.
I am looking out for code assistance for karma-jasmine test cases.
I have followed up the steps, you may verify that by screen shot:
Screenshots:
Intellij-Ideaadded-karma-jasmine
karma-jasmine config
Still neither I am getting the code completion nor highlighting feature.
Please help. Thanks in advance.
To get coding assistance for Jasmine (e.g. describe, it, etc), try to instal stubs for Jasmine (not karma-jasmine).

BlackBerry development using IntelliJ IDEA 7.0?

I know RIM has their own IDE (BlackBerry JDE) for building BlackBerry apps, but does anyone know how to configure IntelliJ IDEA to build/debug BlackBerry apps?
RE: Chris' question about what is different... Blackberry applications can be standard MIDP apps or CLDC apps that make use of the Blackberry specific APIs. Most developers tend to take the latter approach, and then using Blackberry's tools is required - especially if you are using some of their secured APIs and have to sign your deployment files for them to run on the devices.
A potential answer to the original question would be to use the Blackberry ANT tools to create an ANT script for building the application and reference that from IntelliJ IDEA. Of course, that's only half the battle and to run/debug the application you'll need to connect the debugger to IDEA as noted by Alexander above. Alternatively, you could code in IDEA and run/debug in the JDE, but that seems less than ideal, to say the least.
I use Eclipse with the Blackberry plugin. Also not ideal, since you are forced to use an old (and buggy) version of Eclipse, but at least I'm in one IDE and can step through code running in a simulator.
Blackberry JDE integration would be a great IntelliJ plugin project.
RIM's compiler (the one that builds the COD files) can be easily run from the command line. All you need to do is create a corresponding build step in IDEA.
Also, to make your life easier when editing the code, you may want to add the net_rim_api.jar (the one that comes with RIM JDE) to the JAR files used by your IDEA project.
As for the debugger, RIM's debugger was supposed to support the standard Java debugger interface. I don't remember what the minimum version of JDE is required for that.
Not really an answer, but more asking for clarification what is different for Blackberry dev versus other J2ME devices...
I see its a MIDP J2ME device, and so the standard Intellij J2ME support would seem to give most of what is needed.
I guess the emulator side of things might be different... but maybe you can call the jde emulator from IDEA...
Regards,
Chris
I've been using IntelliJ to develop Blackberry apps...sort of. IntelliJ is really good at indexing code, you just need to point it in the right direction. It's editing abilities are way beyond the JDE and in my opinion it is much more flexible and user friendly than Eclipse (even though RIM has an Eclipse plug-in).
I say sort of though as I just code in IntelliJ and currently still compile and debug through the JDE. Hoping for better integration on that front with IntelliJ down the line, but it is an acceptable working environment for now.
Not sure if this will help but here are instructions for setting up Eclipse for blackberry development.
Maybe you can use that information to figure out what changes to need to make in IDEA.
Its very easy to integrate IntelliJ with Blackberry development given the above suggestion (using the bb ant tasks), but I've yet to successfully debug the simulator through IntelliJ. It should work, but it doesn't.
Thus, the 'integration' is incomplete.