Fails to show all values of variables in watch window

General discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Seagreen
Posts: 1
Joined: 03 Jan 2011 15:39

Fails to show all values of variables in watch window

#1 Post by Seagreen » 03 Jan 2011 16:06

My very first MikroBasic does not debug as I expect!
Below is the code.
After succesfull build I run debug and in the "Watch" window I have placed variables Temp Temp2 and Kent
When steping through the code variables Temp Temp2 are shown but Kent remains blank.
As a porevious VB6 and VB2008 programer I am disapointed to find a simple problem for which I can find NO answer in the support documentation. I would be most greatful for any help

Code: Select all

program KEN1
 
' Declarations section 
 dim Temp as word
 Dim Temp2 as byte
 Dim Kent as word


main:
'   Main program 

       Temp = 456
       Temp2 = 72
       Kent = 888

end.
*** Edited by admin: Code Tag

User avatar
tihomir.losic
mikroElektronika team
Posts: 2138
Joined: 02 Dec 2009 14:16
Location: Serbia
Contact:

Re: Fails to show all values of variables in watch window

#2 Post by tihomir.losic » 24 Jan 2011 14:22

Hello,

unfortunately, I didn't reproduce your issue. Please, follow these steps in order to debug your code:
1) Download latest release of our mikroBasic PRO for PIC compiler:
http://www.mikroe.com/eng/downloads/get ... _setup.zip

2) Create project with your code.

3) Select ICD Debug and mikroICD at Build/Debugger Type section:
debug.PNG
debug.PNG (26.18 KiB) Viewed 1464 times
4) Build and Program your project (Ctrl + F11)
5) Press F9 (Run the mikroICD). The following screen will appear:
step1.PNG
step1.PNG (27.05 KiB) Viewed 1464 times
6) Press F7 (Executes the current program line, then halts. If the executed program line calls another routine, the debugger steps into the routine and halts after executing the first instruction within it.):
Step2.PNG
Step2.PNG (18.54 KiB) Viewed 1464 times
7) Once again F7:
Step3.PNG
Step3.PNG (15.99 KiB) Viewed 1464 times
8) Press F7:
Step4.PNG
Step4.PNG (12.92 KiB) Viewed 1464 times
9) Then you Stop Debugger (Ctrl + F2)
Seagreen wrote:As a porevious VB6 and VB2008 programer I am disapointed to find a simple problem for which I can find NO answer in the support documentation. I would be most greatful for any help
Please, follow these links:
http://www.mikroe.com/esupport/index.ph ... rticleid=2
http://www.mikroe.com/esupport/index.ph ... rticleid=3
http://www.mikroe.com/esupport/index.ph ... rticleid=5
http://www.mikroe.com/esupport/index.ph ... rticleid=6

For any further assistance, feel free to contact us.

Best regards,

Losic Tihomir
mikroElektronika [Support team]

Post Reply

Return to “mikroBasic PRO for PIC General”