Warn users when there are breakpoints on SDK/Packages that won't be hit due to debug settings
See original GitHub issueSeen 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:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
It will only prompt once per session (and if you click Never Ask it won’t ask again).
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.