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.

Unbound breakpoint when using Chrome on an SSH remote Windows -> Lunix project

See original GitHub issue

Describe the bug When executing my React app (created with CRA), the breakpoints I am setting are unbound and do not get hit in VS Code.

However, adding debugger statements to the code will drop me into VS code and allow me to step through the process. One thing I have noticed is that when I drop to code on a debugger statement I am in a compiled main.chunk.js file rather than my expected component file.

I use a Windows machine to a remote Linux box using the SSH remote VS code extension. I run npm start on the command line to start the React application and then F5 to run my debugger process.

My launch configuration is below:

{ "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://${env:SWA_DEV_SYSTEM_IP}:3000", "webRoot": "${workspaceFolder}/src", "trace": true } ] }

I have log files attached. v0 is without the debugger statement, v1 is with it.

To Reproduce I was able to replicate this on a split new CRA app.

  • On a linux system, use create-react-app to create a new base application.
  • On Windows, open VS code and connect to the application directory using the SSH remote functionality
  • At the linux command line, npm start the application
  • Ensure that your launch.json has the correct IP address for your app server and is mapped to the /src directory.
  • Place a breakpoint in App.js (for example)
  • F5 to launch Chrome
  • The breakpoint will not be hit

Log File

vscode-debugadapter-0.json.gz vscode-debugadapter-1.json.gz

VS Code Version: 1.49.2 (user setup)

Happy to provide any more detail as required.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
roblourenscommented, Oct 2, 2020

Oh yes, restarting the server is necessary. I missed that this was remote.

1reaction
tip2tailcommented, Oct 2, 2020

Seems that a server reboot means that the process is now picking up the no_proxy env variable I set in .bashrc.

The debugger is now picking things up correctly!

Thank you @connor4312 and @roblourens for the advice, appreciate it!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code - Node breakpoint is unbound - Stack Overflow
I'm working in a serverless project (node) and I'm not able to set a breakpoint (always unbound) using VS code:
Read more >
Help Me Configure vscode for Debugging Remotely - Reddit
I'm currently using vscode in a windows environment for web development on a remote server. To do that I'm using the remote -...
Read more >
TypeScript debugging with Visual Studio Code
Whenever you set a breakpoint in the original source, VS Code tries to find the generated source by searching the files specified by...
Read more >
Troubleshooting - Jest
This will run Jest in a Node process that an external debugger can ... The Chrome Developer Tools will be displayed, and a...
Read more >
100 messages from Google Code
Your project notifications generated too many emails to send individually. ... Re: Issue 231801 in chromium: Errors while installing Chrome on Linux 10.04...
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