How to Debug Logstash using Rubymine or Eclipse - ruby

I dont know how to set up logstash and rubymine to be able to debug logstash code.
I tried opening the project in rubymine then set the breakpoint at a certain point.Then ran the application but flow didn't stopped at the breakpoint.

Related

Issue with Jmeter launching

I am having an issue while launching the Jmeter. I successfully installed Java in my machine and even I installed Jmeter in my system but when I clicked on Jmeter.bat file noting pops up. I have Java 9.0 version running in my laptop.enter image description here
Looking into error you're getting my expectation is that your problem is caused by ugly and shitty more attractive Darkula Look and Feel theme.
I would recommend trying to launch JMeter in normal "light" mode as:
Delete the following registry key using registry editor
Computer\HKEY_CURRENT_USER\Software\JavaSoft\Prefs\org\apache\jmeter
Launch JMeter as follows:
java -jar ApacheJMeter.jar -Jjmeter.laf=javax.swing.plaf.metal.MetalLookAndFeel
If it helps you can make the change permanent by adding the next line to user.properties file
jmeter.laf=javax.swing.plaf.metal.MetalLookAndFeel
More information:
Look and Feel configuration
Configuring JMeter
Apache JMeter Properties Customization Guide
If you still want to use JMeter in "dark mode" you will have to install Java 8 as it appears there is a bug in the dark theme.

Debug Golang code and attach it to local process

Im having a Golang code which I create from it binary for mac via go build
like:
build darwin amd64 myapp
Currently Im able to run the binary and see the logs.
Now I want to debug it , is there a way to debug the binary with Goland or Intellij or VSCode ? regular debug with delve is working from all the IDE's above but now I want to attach it to the binary process which I was able to run,Any idea if it possible?
If you use GoLand 2018.1+ you should be able to use the Run | Attach to Local Process feature and it will allow you to debug a running binary.
I suggest that you compile the binary with all the optimizations turned off and compiled with Go 1.10+ in order to get the best debugging experience.
Furthermore, the IDE can launch the binary and debug it in a single click, removing the need to perform multiple steps.
One last issue that I can mention is that you currently will not be able to correctly debug Go apps via Delve, so regardless of which editor you use, due to a bug introduced by Apple in the latest developer tools. For more information please see the issue on our tracker: https://youtrack.jetbrains.com/issue/GO-5527 and on Delve's tracker: https://github.com/derekparker/delve/issues/1165
Edit:
The issue mentioned above was resolved in GoLand 2018.1.1.

How to debug with MonoDevelop?

I created a regular C# console application in MonoDevelop. I can compile it (if the IDE does not crash) and I can run it in the command line. Now I'd like to debug this console program. How do I do it? MonoDevelop seems not to support that (any more?). I get the error message "Could not connect to the debugger".
Googling did not help. The only solutions suggested don't apply as they are either Unity-specific or refer to an older version of MonoDevelop. (I'm running the most recent stable mono and MonoDevelop.)
Can anyone help me please with this? Thanks!

Tomcat Debugging in eclipse mars

can somebody provide me steps in tomcat debugging in eclipse mars(i am using), like I want to debug a simple spring mvc login example considering that I am setting the password in Controller? I followed the various steps but could not get it done.
Got it. It can be done by starting the server in debugging mode.
Steps:
Assuming one has tomcat server, Right click-->start at debug mode.
One it will show that the debugging has started, therefore, wherever, one has added/put the debug points in the java file,the control will go in the debug screen and one can debug accordingly.

Drop into irb when debugging in Aptana 3

I am new to ruby and Aptana (I have used eclipse before) I was wondering if when debugging in Aptana we can drop into irb to play around with things with current values set. For example doing Java dev in eclipse on a breakpoint you can open Window -> Show View -> Display and start executing Java code with all objects having their current state. Is there a similar thing for debugging ruby apps in Aptana 3?
Thanks
This feature wasn't implemented in Studio 3.0, but is scheduled for 3.0.2. Here's the ticket for the work: https://aptana.lighthouseapp.com/projects/35272/tickets/2122-port-display-view-fro-ruby-debugging-from-radrails-2x
You can try it out via our nightly builds. See here for the instructions on getting that: http://wiki.appcelerator.org/display/tis/Changing+the+Update+Type#
If you want to start an IRB session at runtime try Pry. Also Check out the blog post

Resources