Is this option available in vs2012

 

From: [email protected] [mailto:[email protected]]
On Behalf Of David Rhys Jones
Sent: Tuesday, 8 April 2014 6:49 PM
To: ozDotNet
Subject: Re: Debugging Function parameters

 

Hi, 

 

Best guess it's Customer Id.  - 

Turn on the exception for NullReferenceException

 

Debug -> Exceptions -> Common Language.... -> System 

Then check, 

 

NullReferenceException

ArgumentNullException

NotImplementedException

 

That will help you correct any problems, however you really need to refactor
that and pass a single object with properties. It will save you a lot of
time.

 

.02c

Davy




Davy,


"So you want to keep data which is local, only ever going to be local, only
needed locally, never accessed remotely, not WANTED to be made available
outside our building, which can only WEAKEN our security by being off site,
hosted offsite." BOFH: Simon Travaglia

 

 

On Tue, Apr 8, 2014 at 10:10 AM, <[email protected]> wrote:

I have a function with  about 10 arguments,  one of the variables is
failing,  ie Object reference not set to an instance of an object.

 

Is it possible to determine which variable is causing the issue? 

 

 

Public Function AddCustomer(ByVal CustomerId As Nullable(Of Integer), ByVal
Company As String, ByVal TradingAs As String, ByVal AccessName As String,
ByVal Address As String, ByVal Address2 As String, ByVal Suburb As String,
ByVal State As String, ByVal Postcode As String, ByVal CountryId As Integer,
ByVal PostalAddress As String, ByVal PostalAddress2 As String, ByVal
PostalSuburb As String, ByVal PostalState As String, ByVal PostalPostcode As
String, ByVal PostalCountryId As String, ByVal Phone As String, ByVal Fax As
String, ByVal Email As String, ByVal Firstname As String, ByVal Lastname As
String, ByVal UserEmail As String, ByVal Username As String, ByVal
UserPassword As String, ByVal Website As String, ByVal Mobile As String) 

 

 

 

Reply via email to