Python Repls do not offer a debugger tool after Nix conversion

Bug description:
Every Python repl should support the debugger

Expected vs Current Behavior:
There is no “debugger” tool in this repl, but other repls that appear the same (especially to new users/students) do not offer a debugger

Steps to reproduce:
click the repl
, fork it, try to debug

compare to this link (which does have a debugger)

Bug appears at this link:

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Replit Profile:

You can add a debugger to your python repl manually.

To add a debugger:

add this piece of code to your .replit file:

support = true

  transport = "localhost:0"
  startCommand = ["dap-python", ""]

    dapTcpAddress = "localhost:0"

    command = "initialize"
    type = "request"

      adapterID = "debugpy"
      clientID = "replit"
      clientName = ""
      columnsStartAt1 = true
      linesStartAt1 = true
      locale = "en-us"
      pathFormat = "path"
      supportsInvalidatedEvent = true
      supportsProgressReporting = true
      supportsRunInTerminalRequest = true
      supportsVariablePaging = true
      supportsVariableType = true

    command = "attach"
    type = "request"

      logging = {}

enter this command in the Shell:

pip install debugpy

Thanks Alex - it is good to know this bug has a work around!

I still consider these bug to be pretty bad, esp since as Replit is supposed to be an intuitive tool for beginners, so needing to hack the repl due to the NIX conversion seems weak. Given that the NIX conversion already takes multiples of minutes, adding the need to edit every python repl to make this change seems like a “negative” for the NIX conversion from a user-benefits perspective. I would think that if the repl had a debugger option prior to conversion, then it should have one after. The NIX conversion afterall provides no benefits to new users (especially students). The defacto answer (from their perspective) is that replit does not offer a debugger for Python, while other IDE’s do. Bottom line for me is that this is just a poor UX, esp when these same repls had this in the past , and now the feature is mysteriously missing. I’m really hoping replit takes the initiative to clean up some of the mess created by the NIX conversion (this is just one of them)

1 Like

Hey @cstutormarin!

I am not able to reproduce this, I believe we released a fix for this since you reported. I don’t think the fix propagated to Repls that were created before the fix, but you can always copy & paste the .replit and replit.nix files to the Repls where the issue still persists to fix them.

it did. It was a problem only in the Nix module version. Modules auto-update :raised_hands:

1 Like

A post was split to a new topic: Documentation on Nix and common edits needed
reasoning: as mentioned above, modules auto-update. Therefore, repl configuration doesn’t relate to this issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.