Debug a specific project

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In an Atmel Studio 6.2 Solution with multiple Projects, how to debug a specific project?

 

Everything in the 'Debug' menu seems to just (implicitly) work on the 'Start Up' Project.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In generic visual Studio there is "Set as startup project" and then that becomes the one you launch when debugging. Not sure where this is in AS6 though (not near it to check):

 

https://msdn.microsoft.com/en-us...

Last Edited: Tue. Jan 27, 2015 - 09:36 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You either build/debug the 'Start Up' or you build every single project in the Solution (and debug the Startup)

 

I have been used to Keil or Rowley where you might have many projects in a solution.   And everything works at a reasonable speed.

 

As far as I can see,   AS6.2 grinds to a halt when loading multiple projects.    (and I always disable the horrible 'VAssistX')

On my Win7-64 desktop,  it is manageable.    My Vista-32 laptop is virtually unusable.    (and I have just re-installed Vista-32 from scratch)

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
In generic visual Studio there is "Set as startup project"

Yes, I know that one - it's in the context menu (when you right-click a Project).

 

My question was whether there's a way to do it directly without having to first "Set as startup project"; eg, as a right-click option - like you can Clean/Build/Rebuild a specific Project from its context menu.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In Solution Explorer for me right clicking a project name shows a context menu that includes "Set as Startup Project" - is that not what you are looking for then?

 

Were you looking for "Set as Startup Project then rebuild it then start debugging" or something? No, I think you will have to click the mouse two or three times.

 

(this is just the same as VS2010 isn't it?)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
In Solution Explorer for me right clicking a project name shows a context menu that includes "Set as Startup Project" - is that not what you are looking for then?

Yes - that is what I said.

 

Quote:
Were you looking for "Set as Startup Project then rebuild it then start debugging" or something?

I was looking for a straight 'Debug This - Now!' option - without having to do the 'Set As Startup' first on the project, then go over to the Debug menu (or button) to start debugging.

 

Quote:
I think you will have to click the mouse two or three times

That's what I was hoping to avoid. But it seems you can't.

 

Ho hum. It was just a thought...

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...