NEWBIE Debugger QUESTION

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I need to debug a call to a function and so put a breakpoint there:

Client.UPDATE_Client( _
errMsg, _
CInt(lblClientID.Text), _
txtInitials.Text, _
txtSurname.Text, _
Title, _
txtFirstName.Text, _
cmbTelHomeCode.Text, _
txtTelHomeNo.Text, _
cmbTelBusCode.Text, _
txtTelBusNo.Text, _
cmbFaxCode.Text, _
txtFaxNo.Text, _
cmbCellCode.Text, _
txtCellNo.Text, _
Language, _
txtEmail.Text, _
txtIDNo.Text, _
txtPassportNo.Text, _
DOB, _
cmbGender.Text, _
cmbMarital.Text, _
txtPhysAdrBuilding.Text, _
txtPhysAdrStreet.Text, _
txtPhysAdrSuburb.Text, _
txtPhysAdrTown.Text, _
cmbPhysAdrCode.Text, _
txtPostAdrBuilding.Text, _
txtPostAdrStreetBox.Text, _
txtPostAdrSuburb.Text, _
txtPostAdrTown.Text, _
cmbPostAdrCode.Text, _
cbxIsStaff.Checked, _
cbxIsVIP.Checked, _
Occupation, _
txtEmployer.Text, _
txtCompanyNo.Text, _
txtVATNo.Text _
)

Hovering the cursor over the variables such as 'Title' and 'Language' shows
the value of the variable. However, when i hover over something like
'txtInitials.Text' I simply get 'Public overridable property Text as string'
- not too helpful!
When i put '? txtInitials.text' into the Immediate window i get the response:
"Expression cannot be evaluated at this time."

Also not terribly helpful. Now i've heard that the .net debugger is much
better than in VB6, but what am i doing wrong???

How do i see the values of these properties???

thanks
Suzie
 
Suzie,

Beside that you use to many parameters for a normal use of a sub do I get in
this case (with one parameter 'Cint(textbox1.text)' ) normal the value at
that moment in the textbox as string

I hope this helps,

Cor
 
Hi Cor

I'm not sure I understand what you're trying to say about the debugging issue.

Regarding the many params - the function i'm calling is a method inside
another class in a different code module. So the properties that i'm sending
over as params are not visbible to that class.

I still dont understand why the immdediate window cannot evaluate these
property values.

thks
Suzie
 
Suzie

If I do this

Private Sub load_form............
procwhatever(Cint(textbox1.text))
end sub
Sub procwhatever(byval whatever as string)
end sub

And my programs breaks because in textbox1 is the text "textbox1", I can
hoover over 'text' in the parameter and then I see "textbox1"

I hope you understand this better

Cor
 
Do you know about the Autos, locals and watch windows (Debug>Windows), I think now is the best time.

HTH, Metallikanz!
 
Expression cannot be evaluated at this time

I too have this same issue. It doesn't matter where I try to view my variable (watch window, command window, hovering, etc.), I keep getting a variation of "expression cannot be evaluated at this time". Anyone else have anything helpful to suggest?

Thanks,
WorkerBee
 
Back
Top