Ask coding questions

← Back to all posts
DEBUGGER ON PYTHON
RYANTADIPARTHI (6019)

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!

Comments
hotnewtop
michaelxhermes (1)

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..,.

RYANTADIPARTHI (6019)

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

grafitosLeg (3)

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

PattanAhmed (1404)

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

2.

That's it!
Thanks!

Hope this helps

RYANTADIPARTHI (6019)

@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?

PattanAhmed (1404)

@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

PattanAhmed (1404)

@RYANTADIPARTHI Welcome!
Glad you got helped
Happy to help

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

CodeLongAndPros (1622)

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
Coder100 (18059)

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

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.

RYANTADIPARTHI (6019)

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

Coder100 (18059)

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

Coder100 (18059)

I thought they fixed it by now, sorry about that @RYANTADIPARTHI

RYANTADIPARTHI (6019)

@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.

Coder100 (18059)

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

grafitosLeg (3)

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

michaelxhermes (1)

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

SxP256 (0)

@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