Debug
If you find a grammatical error before you save or build a file, you can hover the red icon in the editor or read the error or warning message in [Output] tab at the bottom.
When an error occurs, you can perform a debug to find the cause.

The programming languages that currently support debugging in goormIDE are as follows:
- C/C++
- JAVA
- Python
- Ruby
Breakpoint is a tool that allows a debugger to pause while reading the source code to check which value is in the variable.
To set or remove the breakpoints, click the blank space on the left side of the code line you want to stop.
Alternatively, go to [Debug] > [Toggle Breakpoint] or press the default shortcut
Ctrl + B (MAC: ⌘B)
.
Or, it can be set through the right-click menu in the editor.
When the code is executed in debugging mode, the debugger stops on that line.
You can find a list of locations set as breakpoints at the [Debug] > [Breakpoints] on the left side of the layout.

In top menu [DEBUG] > [Debug], select the project you want to debug.
Or press the default shortcut
Alt + F5 (MAC: ⌥F5)
to start debugging the recently debugged project.
Alternatively, click the [Debug] tab on the left layout and press the
button.

When debug starts, the Debug Terminal window pops up, where you can see the debug running.
You can also enter debug commands.
If you have multiple projects, mouse-over to a project you want to debug and click the debug icon.
In debugging mode, the following functions are available:
- Continue: Proceeds to the next breakpoint.
- Step Over: Moves to the next code line within the currently in progress function. This is similar to step-in function, but the step-over does not stop when the function is called.
- Step In: Moves to the next code line within the code currently in progress. Similar to step-over, but the step-in stops when the function is called every time.
- Step Out: Proceeds until the selected stack returns. After step-out, the return value is printed.
- Terminate: Terminates the debugging mode.
The above functions can be found in Debug tab on the left layout.
Or [Debug] > [Continue], [Step Over], [Step In], [Step Out], and [Terminate].
Alternatively, press the default shortcuts
Ctrl + Shift + Y (MAC: ⌘⇧Y)
, F6
, F7
, F8
, F4
. Yellow highlights show the line being read by the debugger in the editor, showing the name of the local variable, the value stored in the variable, and the type of variable in Debug tab in the lower layout.
For an array or object, you can expand and view its sub-items by clicking the triangle icon.
In most plug-ins (programming languages), you can correct values directly by clicking a variable value in the list of local variables.

Debugging mode in C/C++ project.

Debugging mode in JAVA project.

Debugging mode in Python project.
- 1.Run Node app with
--inspect-0.0.0.0:9229
option. ex)node--inspect=0.0.0.0.:9229 app.js
- 2.Add 9229 ports form the top menu [container] - [port forwarding setting] and copy IP and external ports
- 3.Open a new chrome and go to
chrome://inspect
. - 4.Click
Configure...
to the right of Discover network targets and add the IP and external ports copied in step 2 in the format[IP]:[External Port]
- 5.You can see the node app listed in the bottom
Remote Target
after click Done and open the debug window by press inspect.
Last modified 2yr ago