azure-sphere-samples | Samples for Azure Sphere | Azure library
kandi X-RAY | azure-sphere-samples Summary
kandi X-RAY | azure-sphere-samples Summary
This repository contains samples for the Azure Sphere platform that are created and maintained by Microsoft.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-sphere-samples
azure-sphere-samples Key Features
azure-sphere-samples Examples and Code Snippets
Community Discussions
Trending Discussions on azure-sphere-samples
QUESTION
I'm trying to get started with microsoft's azure sphere development.
When I try to debug any of the starter projects within vs code, it tells me that I have a breakpoint set on the first line of the app. However, vs code doesn't show any breakpoints in the "Breakpoints" tab.
I am running the latest VS code version (1.44) with the Azure Sphere Extension 20.1 on windows 10. The same problem appears on Linux.
To reproduce the bug:
- Download the starter projects from github
- Install the Azure sphere extension for visual studio code.
- open HelloWorld_HighLevelApp folder in
azure-sphere-samples\Samples\HelloWorld\HelloWorld_HighLevelApp
in visual studio code. - Go to the Debug tab and hit the green play button on top left corner. Next to the button it should say
Launch for Azure Sphere High-Level Applications (gdb)
For me it doesn't an error but the output console shows:
...ANSWER
Answered 2020-Apr-09 at 15:39Azure Sphere uses gdbserver to provide a debug channel to the device. A default behavior of gdb is to break on entering main. This can be confusing to people on Windows who expect a run to breakpoint behavior as is common in Visual Studio. For our interface with GDB we intentionally silently skip the breakpoint on entering main in Visual Studio to be consistent. You can actually see that breakpoint skipped in the debug log output window.
For VS Code we also skip the breakpoint on main when you are on Windows. It looks like you are on Linux from the output above. I haven't used it on Linux for a few weeks so can't recall if the behavior is intentionally different there or not. It would make sense to me to break on entering to main when on Linux as that is the common expectation when using GDB which is more common there than on Windows. I'll check if this is by design or not and reply back, but I suspect it is.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-sphere-samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page