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 cursor missing in VSCode

See original GitHub issue

Environment data

VS Code version: 1.20.1 (1.20.1) Python Extension version: 2018.1.0 Python Version: 3.6.4 MacOS, 3.6.4 FreeBSD (both ptvsd 3.0.0) OS and version: MacOS 10.13.3, Remote FreeBSD 11.1

Actual behavior

I can’t see stepper cursor for debugger, where it is on the line 2018-02-26_16-52-30

Configuration is correct, but I guess it might have something to do with „Unknown source“ in call stack, but I have correct directories there.

    {
      "name": "BSDAdmin: Remote",
      "type": "python",
      "request": "attach",
      "localRoot": "${workspaceFolder}",
      "remoteRoot": "/home/djmanas/python",
      "port": 4000,
      "secret": "my_secret",
      "host": "127.0.0.1",
    }

Expected behavior

I guess it should show me hilighted line, on which the debugger is

Steps to reproduce:

  • Launch any script on remote server via remote debugging,
  • It gets attached, but cursor is nowhere

Logs

Output from Python output panel

Nothing.

Output from Console window (Help->Developer Tools menu)

Nothing.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
DJManascommented, Jun 12, 2018

According to the other issue #819, I had tested this one with the experimental python debugger.

Used: ptvsd 4.1.1a5

Configuration,${workspace} didn’t work, since I use workspace with more folders and it launched it only localy, dunno if it is another bug or not, but when I switched it with local path it started to work:

  "configurations": [
    {
      "name": "BSDAdmin: Remote",
      "type": "pythonExperimental",
      "request": "attach",
      "localRoot": "/Users/djmanas/Dropbox/Projekty/Python/BSDAdmin",
      "remoteRoot": "/home/djmanas/python",
      "port": 4000,
      "host": "10.211.55.10",
    }
  ]

Result: 2018-06-12_13-36-46

Thank you guys.

0reactions
DonJayamannecommented, Sep 27, 2018

It should be fixed, please test the latest development version of the extension. Instructions can be found here https://github.com/Microsoft/vscode-python/blob/master/CONTRIBUTING.md#development-build

I’m closing this issue has I believe it has been resolved in the latest development version. Please verify, and if it hasn’t been resolved please re-open the issue or feel free to comment on this issue (& i’ll re-open it).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix mouse cursor disappearing in Visual Studio ...
The Solution. Thankfully the solution is quick and simple: Open Control Panel | Appearance and Personalization | Personalization | Change mouse ...
Read more >
Debugging in Visual Studio Code
To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and...
Read more >
Debug code with force run to cursor - Visual Studio Blog
To run directly to your cursor location, in source code or the Call Stack window, select the line you want to break at,...
Read more >
VS Code tips — Debug: Run to cursor - YouTube
Today's VS Code command: Debug : Run to cursorContinue program execution to the current cursor position while debugging.Use it to jump to a ......
Read more >
Visual Studio Code Debugger not launching - Stack Overflow
This may be caused by a faulty installation of the VS Code C/C++ extension. When launching VS Code, ...
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