Skip to content

"b"/"breakpoint" command waiting for terminal input with no reason when file path contains format like number_. #288

@Learner209

Description

@Learner209

My environment:
Ubuntu22.04, python3.12.0, using conda. ipdb version is 0.13.13.

I noticed that whenever I wanted to set a breakpoint using "breakpoint"/"b" command, the terminal seems to be waiting for input without any reason. This only happens when the file I wanted to set breakpoints in has path that contains "number_" format, (i.e. 9_test.py, some_path/8_test/test.py) but paths like test_8.py, 88.py, some_path/88/test.py work as expected.

Steps to reproduce:

  1. create a file called "5_test.py".
  2. Paste the below into the file.
import ipdb; ipdb.set_trace()
print("Hello world!")
  1. When the ipdb console shows, trying to set a breakpoint at the print("Hello world") line using the 'breakpooint'/'b' command, then hit enter key, nothing happens, typing any other things wouldn't help either.

I have confimed that python 3.8, python 3.10 all worked well, tested under conda envs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions