Skip to content
Sign upLog in
← Back to Community

What is a debugger and how do I use it?

Profile icon
theamazingplant

I am new to programming, so please excuse me if this is a stupid question. What is a debugger and how do I use it? I look at the debugger and I have no idea how to use it at all.
Please help.

Answered by plscodeinjava [earned 5 cycles]
View Answer
Voters
Profile icon
theamazingplant
Comments
hotnewtop
Profile icon
plscodeinjava

Hello

@theamazingplant
,
A debugger is something you use when you have errors in your code. It basically optimizes the file for better finding errors and fixing them. If you are just starting programming, you do not really need to use them.

Profile icon
PattanAhmed

@amaddentcsec
Ah...
Don't that be cycle begger!
Ping
@HahaYes
For for more info!
LoL!

Profile icon
plscodeinjava

@PattanAhmed

I already had this argument with coder100 lol

Profile icon
PattanAhmed

@amaddentcsec
Then you are you repeating this thing?

Profile icon
plscodeinjava

@PattanAhmed

I'm pretty sure I won the argument :)

Profile icon
Coder100

i has been summoned

@amaddentcsec

Profile icon
Coder100

lmao what a cycle beggar

@amaddentcsec

Profile icon
plscodeinjava

@Coder100

Dude.....

Profile icon
Coder100

cycle beggar smh

@amaddentcsec

Profile icon
plscodeinjava

@Coder100

Look I'll probably stop when I get to 5000 cycles like you

Profile icon
CodingCactus

@amaddentcsec
next time it is a warn

Profile icon
PattanAhmed

@amaddentcsec
What?
Really?

Then start an argument with

@HahaYes
or
@k9chelsea2
to know more!
Or even
@CodeLongAndPros
for more info!
He is an expert in these types of things!

Profile icon
Coder100

@amaddentcsec
no, you should stop now

Profile icon
HahaYes

@amaddentcsec
@PattanAhmed
I HAVE BEEN SUMMONED

Profile icon
CodeLongAndPros

@PattanAhmed
WHO DARES SUMMON ME!

Profile icon
k9chelsea2

THE K9CHELSEA2 HAS BEEN SUMMONED

Profile icon
PattanAhmed
Profile icon
PattanAhmed
Profile icon
HahaYes

@PattanAhmed
haha you summoned the cycle police oof

Profile icon
CodeLongAndPros

@HahaYes
"Put your hands where we can see them, and turn around nice and easy!"

Profile icon
HahaYes
Profile icon
CodeLongAndPros

@HahaYes
Ew debootstrap is SLOW

Profile icon
PattanAhmed

@HahaYes

OOF!

Profile icon
CodeLongAndPros

So for python you can use pdb, for c and c++ you can use gdb. I’m on mobile right now, so I can’t explain well. Just Google “how to use {debugger name}"

Profile icon
PattanAhmed

@theamazingplant
Hi,
For your first question:-
What is a debugger

"Debug" redirects here. For other uses, see Debug (disambiguation).

In computer programming and software development, debugging is the process of finding and resolving bugs (defects or problems that prevent correct operation) within computer programs, software, or systems.

Material used from Wikipedia

For your second question:-
and how do I use it?

Well, In Repl.it the built-in option is going little glitchy these days.
So, it may be a hard experience to use it here in Repl.it

But from code, you probably Can give a try:-
For Python:- Read here
For Node.JS:- Read here

That's it
Thanks!

Hope this helps

Profile icon
dabs364

i dont know what u use it for.
I think it doesnt do anything.
it used to work but now doesnt

Profile icon
theamazingplant

then why is it [email protected]