PyCharm has interactive debugging console:
It allows you to check various things in runtime.
I've searched for similar functionality in Eclipse and in Intellij, and couldn't find.
Does it exists there? Thanks
Eclipse has Debug shell which you can use to write custom code and execute when you are in debug mode.
In IntelliJ, you can right click on any code that is in scope of debugging, evaluate expression and in that dialog you can keep custom code and evaluate.
Related
I am new to the Eclipse (Luna) IDE. I downloaded a sample bluemix node.js application, which I have opened in Eclipse. When I do "Build All", I do not see any information in either the "Console" or the "progress view" window. If I deliberately type anything wrong in the code window, I do not see any errors in either of this window. How do I know whether the code has been compiled properly and how do I know the errors if any?.
JavaScript is an interpreted language, not a compiled language. There is no manual compile step where you can see compilation errors. If you've want the editor to assist you with syntax and content completion as you type, the nodeclipse plugin for Eclipse should help.
Let say I have a working Eclipse project . The debug configuration is set up correctly such that I can launch Eclipse and start debug mode with a few clicks. No other run time input is needed and a breakpoint is already added to the beginning of the program.
Instead of clicking, I want to know if there is a way that I can do this from a terminal. Basically I want to script the command. I've found the options to disable splashdown and select the workspace. The Eclipse version is Luna. Thanks.
Check the properties of the process that's in the Debug view when you start it from there. Also: http://help.eclipse.org/luna/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm
I have written a small piece of code in C++(gui/wxWidgets) . It compiles/ links without any errors and produces an executable that when launched from command line opens the desired 'Hello World!' window, but when tried from within eclipse (menu, toolbar or ctrl-F11), it doesn't run. A quick error dialog appears/disappears before it can be read. After many runs I could make out that of the two msgs it displays, one reads something like "Looking for executables...". Apparently eclipse is unable to get to the executable in the Debug folder.
I tried a console application which runs without any issue from within eclipse as well.
My installation is indigo on Ubuntu 12.04.
Any ideas what could be the problem?
Problem resolved.
There was no Launch Configuration in Project Properties -> Run/Debug Settings.
Added one with defaults and it worked.
I am trying to run the following scala code:
println("world שלום").
but in eclipse, this is what I see in scala interpreter console:
println("world שלום")
world ????
Is it possible to fix that?
You should tell where you see this. Is it the console? Also what platform are you running eclipse on.
You could try to add -Dfile.encoding=UTF-8 to your eclipse.ini file.
This works for me with Eclipse Indigo on Linux. It looks like you have some platform specific encoding issue ... but it's impossible to tell without more detail.
Answer here
http://decoding.wordpress.com/2010/03/18/eclipse-how-to-change-the-console-output-encoding/
relevant for all eclipse languages...
Taking the comment i got below into consideration, the short version of the link I gave says the following:
In eclipse, in the toolbar, in the 'run' button combo options, select 'run configurations'
There, go to the 'common tab' and change your encoding to UTF-8.
I have a main function but NetBeans needs a main class in order for stepping. How do you guys debug Clojure in NetBeans?
Using the enclojure plugin, I am able to setup a breakpoint in the editor, and then start the debugger inside of Netbeans. Java breakpoints within the project are hit, however, the clojure breakpoints fail with errors like:
Not able to submit breakpoint LineBreakpoint defpackage.clj : 8,
reason: Line number information is missing in the class file com.yourcompany.defpackage.
Invalid LineBreakpoint defpackage.clj : 8
From looking at the site, it implies that debugging support may not be fully available yet.