|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Techniques in VB for Debugging vs Production CodeHi,
I'm coming from a C/C++ background and wondering if there's a straightforward way to designate debugging code in a vb.net application? I'm accustomed to setting up a Preprocessor macro "Debug()" in the tradition of Steve McConnell, which will include or exclude chunks of code depending on a debugging flag, or debugging level. So far the only option I see open to me is if/then blocks. Anyone have any tips? Sebastian wrote:
> Hi, You can do> I'm coming from a C/C++ background and wondering if there's a > straightforward way to designate debugging code in a vb.net application? > I'm accustomed to setting up a Preprocessor macro "Debug()" in the > tradition of Steve McConnell, which will include or exclude chunks of > code depending on a debugging flag, or debugging level. So far the only > option I see open to me is if/then blocks. Anyone have any tips? #if Debug then #else #end if to add code during debug session. if you wanted to add an entire function then do: #if Debug then DebugCode()
Converted code
Bug with VS.NET inheriting from a control Export Data to Excel I'm perplexed with simple ADO.NET - Access DB Access - Please Help Edit and Continue?? VS2005 VB6 to VB.Net - Using X1,X2,Y1,Y2 in .Net Urgent: VB.NET Code to Change Excel Worksheet Header/Footer how to load a .csv file to a temporary table in sql 2000 load .csv data to a datagrid How to provide trial version of software ? |
|||||||||||||||||||||||