Not able to add breakpoints in a WSL Ubuntu distro project

Answered

Hello!

I have a project in a WSL 2 Ubuntu distro in which pydev debugger can't add breakpoints because doesn't find the file.

 

Path mappings are correct. 

I have created a new Ubuntu distro and it works, with apparently the same settings, but no in my previous one.

All help is welcome. Thanks! have a nice day.

 

0
5 comments
Avatar
Permanently deleted user

UPDATE:- I have tried to create a new interpreter with the 2 ways (see link) in the problematic Ubuntu distro with no positive result:https://www.jetbrains.com/help/pycharm/using-wsl-as-a-remote-interpreter.html

- After adding the PYCHARM_DEBUG=True variable, the difference that I see in the logs is that the distro that doesn't work, seems to not be using the path mapping:

DISTRO THAT WORKS:

...
sending cmd --> CMD_VERSION @@BUILD_NUMBER@@
Connected to pydev debugger (build ....115)
debugger: received >>111 3 python-line //home/.../2104-test/main.py 9 print_hi THREAD None None
<<
Received command: CMD_SET_BREAK 111 3 python-line //home/.../2104-test/main.py 9 print_hi THREAD None None
Added breakpoint:/home/juan/01-projects/00-training/2104-test/main.py - line:9 - func_name:b'print_hi'
...

DISTRO DONT WORK:

...
sending cmd --> CMD_VERSION @@BUILD_NUMBER@@
Connected to pydev debugger (build ....115)
debugger: received >>111 3 python-line //wsl$/Ubuntu/home/.../2104-wsl-training/code/test.py 3 None THREAD None None
<<
Received command: CMD_SET_BREAK 111 3 python-line //wsl$/Ubuntu/home/.../2104-wsl-training/code/test.py 3 None THREAD None None

pydev debugger: warning: trying to add breakpoint to file that does not exist: /wsl$/Ubuntu/home/.../2104-wsl-training/code/test.py (will have no effect)
Added breakpoint:/wsl$/Ubuntu/home/juan/.../code/test.py - line:3 - func_name:b'None'
...

 

0

Please file an issue to https://youtrack.jetbrains.com/issues/PY and attach your idea.log file from Help | Show Log in...

0
Avatar
Permanently deleted user

Done. https://youtrack.jetbrains.com/issue/PY-48415

Please, confirmed me this issue is only visible by JetBrains team. Thanks. Looking forward to an answer.

0

Sergey Karpov @... do you have any updates on this? I do have the same issue

0

Please sign in to leave a comment.