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 debugging configuration suddenly not working anymore

See original GitHub issue

Issue copied from: https://www.reddit.com/r/vscode/comments/bnhgb0/remote_debugging_configuration_suddenly_not/?utm_source=share&utm_medium=web2x

"I’m running scripts from a remote server, and usually I can debug this fine, but yesterday suddenly it won’t debug anymore!

When I press the ‘Start debugging’ button or F5, the debugging banner appears briefly, but then disappears again and I can’t restart the session otherwise I get a 'There is already a debug configuration “<my config>” running." error.

If I subsequently run another debug config, the two of them just appears in the call stack with no way of closing/stopping/restarting them!

The way I start the session is to first ssh into the remote server with ssh -tL 56784:localhost:56785 <remote-server> ssh -L 56785:localhost:56784 <remote-machine> and then run the following command python -m ptvsd --server-host 0.0.0.0 --port 56784 --wait <script>. Usually I can then start my debugging using the following config in my launch.json:

{
    "name": "Python: Remote Attach",
    "type": "python",
    "request": "attach",
    "port": 56784,
    "host": "localhost",
    "pathMappings": [
        {
            "localRoot": "",
            "remoteRoot": "<path/on/remote/server>"
        }
    ]
}

My version of VScode is 1.33.1.

I really have no idea on how to fix this or figure out what is wrong, but hopefully someone out there can see what is wrong or have stumbled on something similar?

[ UPDATE ] So, I found out after some various tests that it was a problem with the vscode-python extension. Specifically, version 2019.4.12954 breaks the debugging functionality (cannot add Python debug configs for instance) and also seriously messes with the how the settings look when pressing Ctrl+Shift+P.

Rolling back to version 2019.4.11987 solves the issue, strangely enough."

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
Lethaycommented, Jul 9, 2019

@DonJayamanne Sorry for the equally long delay, I wanted to make sure I’d debugged decent amount before I could be sure. I don’t seem to have any more performance issues on the current stable version of VS Code.

0reactions
DonJayamannecommented, Jun 24, 2019

@Lethay Apologies for the delay. With the new release of VS Code do you still experience these perf issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCode: Remote debugging configuration suddenly not ...
When I press the 'Start debugging' button or F5, the debugging banner appears briefly, but then disappears again and I can't restart the...
Read more >
Remote debugging configuration suddenly not working anymore
"I'm running scripts from a remote server, and usually I can debug this fine, but yesterday suddenly it won't debug anymore!
Read more >
Error: Unable to Start Debugging on the Web Server
If that does not work or you are debugging remotely, follow steps in Check your IIS Configuration.
Read more >
Remote debugging configuration suddenly not working anymore
I'm running scripts from a remote server, and usually I can debug this fine, but yesterday suddenly it won't debug anymore!
Read more >
Troubleshooting common PHP debugging issues | PhpStorm ...
In some cases, the debugger can connect, but you get the error messages indicating that no mapping between the remote and project files...
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