question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote Debug Breakpoint Error (Docker)

See original GitHub issue

Environment data

  • VS Code version: 1.32.0-insiders
  • Extension version (available under the Extensions sidebar): 2019.1.0
  • OS and version: Windows 1803
  • Python: 3.7.2 64-bit (user install)
  • Python Packages: ptvsd 4.2.3
  • Docker: Docker (for Windows) version 18.09.1, build 4c52b90
  • Docker Compose: docker-compose version 1.23.2, build 1110ad01

Expected behaviour

Attach to debugger server with breakpoints.

Actual behaviour

Error is thrown that it cannot add breakpoint to non-existing file. It is mapping to the wrong path.

Recreating python_app ... done
Attaching to python_app
python_app | pydev debugger: warning: trying to add breakpoint to file that does not exist: /opt/app/c:/Users/mydevuser/Downloads/py_debug_example/app/start.py (will have no effect)
python_app | hello world!
python_app | Traceback (most recent call last):
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/wrapper.py", line 1422, in done
python_app |     fut.result()
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/futures.py", line 40, in result
python_app |     reraise(self._exc_info)
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/reraise3.py", line 8, in reraise
python_app |     raise exc_info[1].with_traceback(exc_info[2])
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/futures.py", line 157, in callback
python_app |     x = next(it)
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/wrapper.py", line 1677, in on_threads
python_app |     _, _, resp_args = yield self.pydevd_request(cmd, '')
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/wrapper.py", line 1451, in pydevd_request
python_app |     return self._pydevd_request(self.loop, cmd_id, args, is_json=is_json)
python_app |   File "/usr/local/lib/python3.7/site-packages/ptvsd/wrapper.py", line 514, in pydevd_request
python_app |     raise EOFError
python_app | EOFError
python_app exited with code 0

Steps to reproduce:

Clone py_debug_example and follow its instruction.

Logs

##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)



[Error - 9:11:29 AM] One or more errors occurred. (failed to parse file file:///c:/Users/mydevuser/Downloads/py_debug_example/start.py)

Traceback w/ Source Map Enable

See raw traceback with source map enable output hosted by pastebin.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

0reactions
DonJayamannecommented, Apr 4, 2019

Upstream issue has been resolved, hence closing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breakpoints are not hit when debugging with remote docker ...
I'm on RubyMine 2019.2 on Windows 10. To get debugging working with a remote ruby via docker-compose. The current behavior that I see...
Read more >
Hit breakpoints on Typescript files while debugging using an ...
When I run my docker container and attach the debugger via VsCode, I'm able to hit breakpoints, but they always end up on...
Read more >
Debug an app running in a Docker container
Debug an app running in a Docker container, using Visual Studio Code.
Read more >
Debug apps in a local Docker container - Visual Studio ...
Debug with breakpoints · In Solution Explorer, open Program.cs. · Replace the contents of the Main method with the following code: C# Copy...
Read more >
Why is debugging so difficult in Docker containers - Reddit
I use IntelliJ but I'm assuming VSCode can do something similar. You can expose a port on the container and connect the remote...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found