Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Debug info output?


  • Please log in to reply
1 reply to this topic

#1 H07R0D

H07R0D

    Advanced Member

  • Members
  • PipPipPip
  • 95 posts

Posted 03 February 2012 - 08:58 PM

Upgraded to 4.2(RTM) and appropriate firmware on my N+. Everything went fine, but now in my debug sessions I'm missing the RAM/ROM/META messages, which I really liked since I'm doing a lot of reflection, and it's nice to know how big the assemblies are that I'm loading. Do I need to do anything differently now that I'm on the 4.2 SDK?

#2 Novice Alex

Novice Alex

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts

Posted 04 August 2012 - 03:34 PM

Upgraded to 4.2(RTM) and appropriate firmware on my N+.
Everything went fine, but now in my debug sessions I'm missing the RAM/ROM/META messages, which I really liked since I'm doing a lot of reflection, and it's nice to know how big the assemblies are that I'm loading.

Do I need to do anything differently now that I'm on the 4.2 SDK?


Hi H07R0D,

I too looking at using reflection to set the debug statement printout during exception being thrown out. Can you share with me how to use the reflection methods to extract the name of the method (within the class) that is causing the exception?

In VB.NET, I always include these statements in my catch statement.
Dim f As New StackFrame
cErrorHandler.LogError(f.GetMethod().DeclaringType.FullName & "." & System.Reflection.MethodBase.GetCurrentMethod().Name, ex)

Wonder how can I do the same in .NetMF 4.2

Thanks in advance.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.