Re: Debugging Function parameters

2014-04-08 Thread Mark Hurd
function call, don't get a chance to step through > > -Original Message- > From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] > On Behalf Of Sam Lai > Sent: Tuesday, 8 April 2014 8:25 PM > To: ozDotNet > Subject: Re: Debugging Function paramete

RE: Debugging Function parameters

2014-04-08 Thread anthonyatsmallbiz
Is this option available in vs2012 From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] 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 o

RE: Debugging Function parameters

2014-04-08 Thread anthonyatsmallbiz
Exception occurs at the function call, don't get a chance to step through -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Sam Lai Sent: Tuesday, 8 April 2014 8:25 PM To: ozDotNet Subject: Re: Debugging Function paramete

Re: Debugging Function parameters

2014-04-08 Thread Sam Lai
I haven't done VB.NET for a long while so this is probably a silly question, but why can't you just step into that function see where it is failing? On 8 April 2014 18:10, wrote: > I have a function with about 10 arguments, one of the variables is > failing, ie Object reference not set to an

Re: Debugging Function parameters

2014-04-08 Thread David Rhys Jones
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

Debugging Function parameters

2014-04-08 Thread anthonyatsmallbiz
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