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.

Warn users when there are breakpoints on SDK/Packages that won't be hit due to debug settings

See original GitHub issue

Seen result: I can place breakpoints inside of my unit test and execution will pause correctly, but if I put a breakpoint in the framework, say packages/flutter/lib/src/widgets/scroll_physics.dart the breakpoint will not trigger.

Expected result: I expect breakpoints in the framework to behave like breakpoints in the unit tests.

Seen system: Dart Code Version: 3.10.1 VSCode: 1.44.2 Operating System: Mac OS X 10.14.6

Flutter Doctor:

[✓] Flutter (Channel unknown, 1.18.0-9.0.pre.66, on Mac OS X 10.14.6 18G2022, locale en-US)
    • Flutter version 1.18.0-9.0.pre.66 at /Users/aaclarke/dev/flutter
    • Framework revision 780d93bf38 (19 hours ago), 2020-05-04 17:18:41 -0700
    • Engine revision 4bcfae82c7
    • Dart version 2.9.0 (build 2.9.0-3.0.dev a69cb6d700)

Notes:

  • If I use the debugger() function in my desired code, execution will pause but the stack trace inside of visual studio code will not include anything beyond the unit test.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
DanTupcommented, May 19, 2020

Neither of my other ideas worked, so the best I could come up with for now is this when you have a breakpoint outside of your current workspace. If you already have them, this will appear at project open, but otherwise it’ll appear as soon as you add the breakpoint:

Screenshot 2020-05-19 at 10 05 43

It will only prompt once per session (and if you click Never Ask it won’t ask again).

1reaction
gaaclarkecommented, May 6, 2020

With this off, ehen an exception occurs in the framework, it will break the debugger where your code called into the framework.

Makes sense, thanks @DanTup. Also, in lieu of a warning we could consider just treating explicit breakpoints as exceptions to the settings, too. That might be easier. I think it’s a pretty clear signal someone wants it to break there if they go through the trouble of adding the breakpoint.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I remedy "The breakpoint will not currently be hit. No ...
Start debugging, as soon as you've arrived at a breakpoint or used Debug > Break All , use Debug ... Uncheck the "Enable...
Read more >
Troubleshoot Breakpoints in the Visual Studio Debugger
Normally, this problem happens when a source file is changed, but the source code wasn't rebuilt.
Read more >
Manual: Debug C# code in Unity
Configure the code editor · Specify the External Script Editor in Unity · Breakpoints · Debug in the Unity Editor · Debug in...
Read more >
Debugging - Expo Documentation
Use breakpoints (or console.log s) to check and make sure a certain piece of code is being run, or that a variable has...
Read more >
Cannot Set Breakpoints or Step Through C/C++ Code
Check if Debug Information is enabled. Exit debug mode. Go to Options for Target (blue wand icon) => Output tab => Debug Information....
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