![how to run bluej program how to run bluej program](https://static.filehorse.com/screenshots-mac/developer-tools/bluej-mac-screenshot-01.png)
There is no magic in the debugger, it don't find bugs, it just help you to. The debugger is here to show you what your code is doing and your task is to compare with what it should do. Just set a breakpoint and see your code performing, the debugger allow you to execute lines 1 by 1 and to inspect variables as it execute.ĭebugger - Wikipedia, the free encyclopedia Use the debugger to see what your code is doing. When you don't understand what your code is doing or why it does what it does, the answer is debugger. It is also a great learning tool because it show you reality and you can see which expectation match reality. In the next step, we can run the program. Result: the output of the program is shown in BlueJs. Left click on the void main (String args) tab: A window will pop up: Left click on OK to run the program.
![how to run bluej program how to run bluej program](https://res.cloudinary.com/canonical/image/fetch/f_auto,q_auto,fl_sanitize,w_819,h_617/https://dashboard.snapcraft.io/site_media/appmedia/2020/04/screenshot.png)
Change the working directory to where you have your C program. How do I run a BlueJ code Right click on the program file in BlueJs main window, and then.
#HOW TO RUN BLUEJ PROGRAM INSTALL#
If not you need to download a gcc compiler and install it. There is a tool that allow you to see what your code is doing, its name is debugger. Run the command ‘gcc -v’ to check if you have a compiler installed. Use the debugger and test the code behavior with each letter, especially with y, z and non letters chars. Left click on the void main(Stringargs) tab: A window will pop up: Left click on OK to run the program. Result: the output of the program is shown in BlueJ's. Professional programmer's editors have this feature and others ones such as parenthesis matching and syntax highlighting.Ī sentence can have commas and points that are not handled by your code. Right click on the program file in BlueJ’s main window, and then. Execute a Java program in BlueJ: Right click on the program file in BlueJ's main window, and then. Pay attention to this re-indented code, it don't look like in your question, but it is the same code.