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

Newbie: How to write debug statement


  • Please log in to reply
4 replies to this topic

#1 alexccw74

alexccw74

    New Member

  • Members
  • Pip
  • 7 posts

Posted 27 October 2015 - 04:08 PM

Hi Guys,

 

i am currently using VB.net to program my N3.

May i know what resource do i need to include in order to do Debug.Print statement?

Is it that I need to deploy my program as console mode?

 

Thanks in advance.



#2 Stanislav Husár

Stanislav Husár

    Advanced Member

  • Members
  • PipPipPip
  • 99 posts

Posted 27 October 2015 - 06:32 PM

Hi,

 

You can use Debug.Print in any Netduino application. The string, which you pass as argument, will be displayed in the Output Window of Visual Studio during debugging.



#3 alexccw74

alexccw74

    New Member

  • Members
  • Pip
  • 7 posts

Posted 28 October 2015 - 02:55 AM

Hi,

 

I am referring whether I need to include any library reference to the project in order to use this debug.print function?

apparently the VS does not recognize it when i use this function and compile error occurred.  



#4 KiwiDev

KiwiDev

    Advanced Member

  • Members
  • PipPipPip
  • 100 posts
  • LocationNew Zealand

Posted 28 October 2015 - 04:59 AM

Hi Alex,

 

In your code

 

using Microsoft.SPOT

 

Then in the "references"

 

Microsoft.SPOT.Native

 

 

 

@KiwiBryn

blog.devmobile.co.nz



#5 alexccw74

alexccw74

    New Member

  • Members
  • Pip
  • 7 posts

Posted 31 October 2015 - 01:29 PM

Kiwi,

 

thanks for your suggestion.  Indeed, after adding the "Native" reference, there is no problem reported from VS during compile, also i can see the debug statements now..

 

Thanks.






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.