Skip to content
Sign upLog in
← Back to Community
DEBUGGER ON PYTHON
Profile icon
RYANTADIPARTHI

Hi guys, could anyone tell me how to use the debugger on repl.it for python, I tried searching how to debug on repl.it, but there were no results, so could someone please tell me how to use the debugger for python code?

Thanks!

Voters
Profile icon
McSimilian
Profile icon
patmoran2550
Profile icon
stja
Profile icon
Yulia5
Profile icon
MemeManHimself
Profile icon
mrcoxall
Profile icon
TheDevBest
Profile icon
chillcafe
Profile icon
Cooolcoder
Profile icon
RYANTADIPARTHI
Comments
hotnewtop
Profile icon
michaelxhermes

Hi Ryan... did you ever find out how to do this?? I am very confused with the repl help etc... I cannot find debug run mode..,.

Profile icon
RYANTADIPARTHI

@michaelxhermes
i think it's still not working right now.

Profile icon
grafitosLeg

yeah ..I have the same problem ...there's the crash dump when I'm trying to run the debugger. Eather play resume or step over..
I'm playing with python

image

Profile icon
PattanAhmed

@RYANTADIPARTHI
Hi,
You will find a built-in given by Repl.it
Follow these steps:-

01
2.
02
That's it!
Thanks!

Hope this helps

Profile icon
RYANTADIPARTHI

@PattanAhmed
hello, thanks for the info, but that's exactly what I did, but it still doesn't work, could you please tell me why?

Profile icon
PattanAhmed

@RYANTADIPARTHI
Welcome!
Then, It can probably be a bug...
Report it in the ** Repl.it bugs section**
Click here
The community of Repl.it may follow up with you there

Hope this helps
Please mark my answer if this helps

Profile icon
RYANTADIPARTHI

@PattanAhmed
hey, thanks!

Profile icon
PattanAhmed

@RYANTADIPARTHI
Welcome!
Glad you got helped
Happy to help

But please don't forget to mark my answer if that helps
Thanks!

Profile icon
RYANTADIPARTHI

@PattanAhmed
I did, np

Profile icon
PattanAhmed
Profile icon
CodeLongAndPros

Open a shell with C-S, and run python3 -m pdb main.py And you can use these commands:

  • pp (var)
  • b (no) # set breakpoint
  • c # run until next breakpoint
  • r # run until function return
  • n # move one line toward.
  • s # move into the next function
Profile icon
Coder100

anyways, here ya go:
To start, click the run button

image

image

now for these buttons, the first one is resume (continue running), second one is step over (skip a function call, etc.), next one is well, next (go to the next function call, etc.), the final one is to go back a function call.

Profile icon
RYANTADIPARTHI

@Coder100
but I did press the play button, and it didn't work

Profile icon
Coder100

huh report to bugs
It has been broken for a while now


@RYANTADIPARTHI

Profile icon
Coder100

I thought they fixed it by now, sorry about that

@RYANTADIPARTHI

Profile icon
RYANTADIPARTHI

@Coder100
it's ok, no problem, but thanks anyway, for your quick reply, I will try to check the debugger again sometime, and I'll let you know, thanks anyway.

Profile icon
Coder100
Profile icon
Coder100

Hi, currently it does not work because your repl is in PROJECT mode.

Profile icon
grafitosLeg

@Coder100
how to open the file , not the Project?

Profile icon
michaelxhermes

HI

@Coder100
- please help.. you do not reply to the question.... I why????

Profile icon
Coder100
Profile icon
SxP256

@Coder100
What is "PROJECT" mode and how to I switch out of it? I can't find it in the docs. I'm also missing a debug button when I create a Python repl