Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic No Watch Window or Micro Debug Trace Window (Read 3336 times)
Rich
Newbies
*
Offline


Posts: 3
Joined: Aug 10th, 2013
No Watch Window or Micro Debug Trace Window
Aug 10th, 2013 at 10:07pm
Print Post  
I have a newly installed version of the Visual Micro and a fresh installation of Microsoft Visual Studio.  I naturally want to be able to see my break points and results of conditions applied to variables in debug mode.  I currently have one simple break point that "When Hit" I want it to show me the contents of a string variable.  The 25:25 tutorial shows that the instant you hit "F5" or any equivalent and the code is uploaded to the Arduino that the two windows of which I reference should come up, but they do not.  I have both "(Enable Debugging)" and "(Micro Debug)" set to "Full".  I don't know why there are now two options (there was only one in the video) because they both go to "Full" or "None" when either is toggled.  I also have drop down on the menu bar set to "Debug" instead of "Release".  Please help.  Thanks.
  
Back to top
 
IP Logged
 
Rich
Newbies
*
Offline


Posts: 3
Joined: Aug 10th, 2013
Re: No Watch Window or Micro Debug Trace Window
Reply #1 - Aug 10th, 2013 at 11:05pm
Print Post  
Ok, more information.  If I use the "Blink" code to get LED13 to blink the windows appear and work just fine.  I'm now wondering if it has something to do with anything unique about my code or if, for some reason, the Ethernet library is not supported.  Here's my code:

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 1, 254); 
EthernetServer server(80);   

String HTTP_req;          
boolean LED_status = 0;   

void setup()
{
    Ethernet.begin(mac, ip);   
    server.begin();            
    //Serial.begin(9600);       
    pinMode(31, OUTPUT);       
}

void loop()
{
    EthernetClient client = server.available();   

    if (client) {   
        boolean currentLineIsBlank = true;
        while (client.connected()) {
            if (client.available()) {
                char c = client.read();
                HTTP_req += c;
                if (c == '\n' && currentLineIsBlank) {
                    client.println("HTTP/1.1 200 OK");
                    client.println("Content-Type: text/html");
                    client.println("Connection: close");
                    client.println();
                    client.println("<!DOCTYPE html>");
                    client.println("<html>");
                    client.println("<head>");
                    client.println("<title>Rich's LED Control</title>");
                    client.println("</head>");
                    client.println("<body>");
                    client.println("<h1>LED</h1>");
                    client.println("<p>Click to switch an LED on and off.</p>");
                    client.println("<form method=\"get\">");
                    ProcessCheckbox(client, 31);
                    client.println("</form>");
                    client.println("</body>");
                    client.println("</html>");
                    //Serial.print(HTTP_req);
                    HTTP_req = "";
                    break;
                }
                if (c == '\n') {
                    currentLineIsBlank = true;
                } 
                else if (c != '\r') {
                    currentLineIsBlank = false;
                }
            }
        }
        delay(1);
        client.stop();
    }
}
void ProcessCheckbox(EthernetClient cl, int LEDnum)
{
    if (HTTP_req.indexOf("LED" + String(LEDnum) + "=2") > -1) {
        if (LED_status) {
            LED_status = 0;
        }
        else {
            LED_status = 1;
        }
    }
    
    if (LED_status) {
        digitalWrite(LEDnum, HIGH);
        cl.println("<input type=\"checkbox\" name=\"LED" + String(LEDnum) + "\" value=\"2\" \
        onclick=\"submit();\" checked>LED" + String(LEDnum));
    }
    else {
        digitalWrite(LEDnum, LOW);
        cl.println("<input type=\"checkbox\" name=\"LED" + String(LEDnum) + "\" value=\"2\" \
        onclick=\"submit();\">LED" + String(LEDnum));
    }
}
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: No Watch Window or Micro Debug Trace Window
Reply #2 - Aug 11th, 2013 at 2:29pm
Print Post  
I think this is due to a bug in recent versions with libraries that have a utility folder. There is a 1308.04 beta on our downloads site with a fix but I suggest you wait a few days for the next release.

Currently 1308.04 requires you to run the /resetaddin as documented on visualmicro.com. Hopefully the next release in a few days avoids the need to run the resetaddin due to some missing menu and toolbar items .

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint