NETMF / llilum

Development Platform for MSIL and UWP apps targeting Micro Controllers. Part of the .NET Micro Framework family.
Other
160 stars 52 forks source link

Breakpoints not hit (and deleted ones hit) #191

Open miloush opened 8 years ago

miloush commented 8 years ago

I am running the default SDK application on LPC1768 and I cannot hit any breakpoints until inside the while loop (both while loops work).

I did have F10 previously working with the same board on another computer, that was probably an older version though (and had #172).

Edit: might be related to #135.

lt72 commented 8 years ago

Steve, can you take a look when you have a chance?

smaillet-ms commented 8 years ago

Are you using the -Debug switch for the compiler in the frontend .config file? To get the best full debugging experience you will need that. The symptoms you describe sound like common ones due to the LLVM optimizations and inherent limits of the DWARF-2 format for the debugger build with the ARM Embedded tools.

miloush commented 8 years ago

As I said this is SDK application and I have not modified the .config files (kind of expecting the Debug/Release solution configuration would have a say). Anyway, I tried to add -Debug option after -Architecture in mbed_simple_LPC1768.FrontEndConfig which is part of the Native project, rebuilt, and it did not seem to have any effect. The build output however does not say if it used that file or not...

smaillet-ms commented 8 years ago

At this point the configuration settings for the SDK are reflected only to the Roslyn compiler or the C/C++ compiler. We have a very simplistic MSBuild Exec task to run the Llilum specific tools at the moment. However the goal is to replace that with property tasks that can expose all the command line functionality and information currently stored in the frontend .config files. (Ideally those will fade out of use over time in favor of real project settings)