PC Review


Reply
Thread Tools Rate Thread

Debugging - Want to Skip Code

 
 
Paul
Guest
Posts: n/a
 
      30th Jan 2007
I am running VB.NET 2005. I have a multi-project solution. One
project contains all my base classes and user-controls. My other
project is my application that uses the base classes and UCs. I want
to debug parts of the base and all of my application code. But there
are parts of the base code that I just want to skip and not see (EVER)
when debugging. Is there some feature like #DEBUG that does this?

 
Reply With Quote
 
 
 
 
\(O\)enone
Guest
Posts: n/a
 
      30th Jan 2007
Paul wrote:
> I want
> to debug parts of the base and all of my application code. But there
> are parts of the base code that I just want to skip and not see (EVER)
> when debugging. Is there some feature like #DEBUG that does this?


If you can limit your requirement to entire procedures, you can achieve this
by applying the <DebuggerStepThrough()> attribute to the procedures in
question. Any procedures set up with this attribute will be effectively
ignored by the debugger in the IDE (although they will of course be called
and executed as normal); "step into" will treat them as if they were
language statements and will step over them, breakpoints set inside them
will be ignored, etc.

If you want to be able to do this for specific blocks of code within a
larger procedure, I'm not aware of any way to achieve this.

HTH,

--

(O)enone


 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      30th Jan 2007
(O)enone, thanks very much!

That's exactly what I needed.

 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      30th Jan 2007
(O)enone, thank you very much! That was a quick answer and exactly
what I needed.

Thanks again.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I skip debugging Ajax when debugging my code? AAaron123 Microsoft ASP .NET 3 28th Jul 2009 05:07 PM
Skip stl code when debugging Torben Laursen Microsoft VC .NET 4 9th Jan 2007 08:53 AM
skip code monika Microsoft Excel Programming 1 26th Feb 2004 02:33 AM
Code Does not skip Heather Microsoft Access VBA Modules 1 25th Feb 2004 08:36 PM
No Debugging of C# Server-Side Script, but Code-Behind Debugging Works Johann Blake Microsoft ASP .NET 1 5th Jan 2004 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.