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.

Can't add breakpoints in Chrome DevTools

See original GitHub issue

Description

I’m not able to add breakpoints in Chrome DevTools after updating gatsby to version: 2.13.45

Steps to reproduce

Use official theme starter https://github.com/gatsbyjs/gatsby/tree/master/themes/gatsby-starter-theme

Expected result

Be able to debug website in DevTools

Actual result

When I click on the line number bar I can’t add a breakpoint. If I right-click and choose “Add breakpoint” the breakpoint is not showing up.

Just noticed that I’m able to add a breakpoint but on the first line only.

Environment

Run gatsby info --clipboard in your project directory and paste the output here.

    OS: macOS 10.14.5
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 10.16.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.9.0 - /usr/local/bin/npm
  Languages:
    Python: 2.7.10 - /usr/bin/python
  Browsers:
    Chrome: 75.0.3770.142
    Firefox: 66.0.3
    Safari: 12.1.1
  npmPackages:
    gatsby: ^2.13.45 => 2.13.45 
    gatsby-theme-blog: ^1.0.0 => 1.0.0 
    gatsby-theme-notes: ^1.0.0 => 1.0.0 
  npmGlobalPackages:
    gatsby-cli: 2.4.8```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:7
  • Comments:33 (9 by maintainers)

github_iconTop GitHub Comments

19reactions
max-lcommented, Sep 24, 2019

Please reopen this issue ! Not being able to debug from the browser is a pain !

10reactions
marcinsydorcommented, Aug 7, 2019

Yes, it’s very difficult to debug but also if you have an error in the app it’s not showing the right line of the problem which is very confusing. I’ve changed the version strictly to 2.13.25 and all works fine now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome DevTools won't let me set breakpoints on certain lines
In the image above, I tried setting breakpoints on every line from line 437 to line 443. However, I cannot set breakpoints on...
Read more >
5 Ways to Add Breakpoints on Chrome Devtools
1# Add breakpoints directly. Go to Source Tag of Chrome Devtools, click the line number where the code is located to add a...
Read more >
5 Ways to Add Breakpoints on Chrome Devtools | by bytefish
1# Add breakpoints directly. Go to Source Tag of Chrome Devtools, click the line number where the code is located to add a...
Read more >
Chrome DevTools won't let me set breakpoints on certain lines
JavaScript : Chrome DevTools won't let me set breakpoints on certain lines [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] ...
Read more >
Set Breakpoints In The Chrome DevTools - YouTube
How to set and remove breakpoints, condition breakpoints, and log points in the Chrome DevTools.
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