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

Console Output??


  • Please log in to reply
10 replies to this topic

#1 bryancostanich

bryancostanich

    Advanced Member

  • Administrators
  • 62 posts

Posted 21 August 2010 - 10:45 PM

Is there any built in console output functionality in netduino, the way that arduino/wiring has a console output in the chip and a listener in wiring (et.al, via serial listener)?

#2 bryancostanich

bryancostanich

    Advanced Member

  • Administrators
  • 62 posts

Posted 21 August 2010 - 11:03 PM

i figured it out. Debug.Print("Whatever"); then click debug in vs. super easy.

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 22 August 2010 - 12:36 AM

i figured it out. Debug.Print("Whatever"); then click debug in vs. super easy.


Thanks for posting this, bryancostanich. This will provide valuable help for new users.

Which brings up a good advanced tutorial to do...we'll be sure to do one about debugging (Debug.Print, breakpoints, single stepping, watches) in the next few weeks.

#4 bryancostanich

bryancostanich

    Advanced Member

  • Administrators
  • 62 posts

Posted 22 August 2010 - 12:57 AM

yeah, i'm planning on doing some netduino articles (a la my other tech writing), i'll include it in there as well.

#5 sweddle

sweddle

    Member

  • Members
  • PipPip
  • 12 posts

Posted 29 September 2010 - 06:37 PM

Hello, I to am trying to make this work... 1) I do not see any com-port monitoring console window in VS2010... Am I missing something or do i need to open HyperTerm and use it? 2) The code I'm using is from the "pushing the button" example under Projects. while (true) { buttonState = button.Read(); Debug.Print("hello World"); Thread.Sleep(250); led.Write(!buttonState); } I tried HyperTerminal and set it to what I think my .Netduino USB port is on but I'm not sure of the settings.. 9600 ya? Thanks for any help on this! Shane

#6 MattW

MattW

    Member

  • Members
  • PipPip
  • 23 posts

Posted 29 September 2010 - 08:18 PM

Hi Shane and welcome! The Debug.Print will appear in the Output window within Visual Studio or Express. Cheers, Matt.

#7 dab

dab

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • LocationBellevue, WA, USA

Posted 29 September 2010 - 09:14 PM

Hi Shane and welcome!

The Debug.Print will appear in the Output window within Visual Studio or Express.

Cheers,
Matt.


And you need to have the debugger attached. In VS2010, go to Debug | Start Debugging, which will run the solution in the debugger.

If the debugger isn't attached, the Debug.Print() statements will have no effect.
Thanks,
~ David ~

#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 29 September 2010 - 09:20 PM

And you need to have the debugger attached. In VS2010, go to Debug | Start Debugging, which will run the solution in the debugger.


You can also view the Debug.Print statements through MFDeploy. If you're not running the app from Visual Studio, press F5 in MFDeploy to hook into the Netduino's Debug output.

Chris

#9 davidbates

davidbates

    New Member

  • Members
  • Pip
  • 6 posts
  • LocationNorth Carolina

Posted 30 September 2010 - 12:27 AM

You can also view the Debug.Print statements through MFDeploy. If you're not running the app from Visual Studio, press F5 in MFDeploy to hook into the Netduino's Debug output.

Chris


Is there any known hooks in msdeploy to launch other applications based on the debug output?

#10 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 30 September 2010 - 12:34 AM

Is there any known hooks in msdeploy to launch other applications based on the debug output?


You could integrate with the MFDeployEngine and/or Debugger assemblies--but I'd recommend using a serial port shield for the time being.

Chris

#11 dab

dab

    Advanced Member

  • Members
  • PipPipPip
  • 54 posts
  • LocationBellevue, WA, USA

Posted 30 September 2010 - 02:03 AM

You can also view the Debug.Print statements through MFDeploy. If you're not running the app from Visual Studio, press F5 in MFDeploy to hook into the Netduino's Debug output.

Chris

Oh, cool - I didn't know that. Thanks for the tip!
Thanks,
~ David ~




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.