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
Hot Topic (More than 8 Replies) Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release (Read 18883 times)
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Oct 18th, 2012 at 12:31pm
Print Post  
Hi, 
i have the same problem as above. I've tried everything you suggested wo succes.

My problem is:
Running wo debugging seems to work just fine.
Debugging starts, stops at the first breakpoint correctly. When i press F10/F11, i get an:
"Project sare out of date, would you like to build them?"
I press NO!

Now an error msg pops up: Unable to start Program c:\users........\vsarduinotest\Debug\vsarduinotest.exe. The system cannot find the file specified.

(pressing YES! gives the same error)

That folder exists and contains 2 files: 
vsarduinotest.lastbuildstate & vsarduinotest.log


Here is the log-file:

Build started 2012-10-18 12:44:21.
     1>Project "C:\Users\studio\Documents\Arduino\vsarduinotest\vsarduinotest.vcxproj" on node 2 (build target(s)).
     1>InitializeBuildStatus:
         Creating "Debug\vsarduinotest.unsuccessfulbuild" because "AlwaysCreate" was specified.
       FinalizeBuildStatus:
         Deleting file "Debug\vsarduinotest.unsuccessfulbuild".
         Touching "Debug\vsarduinotest.lastbuildstate".
     1>Done Building Project "C:\Users\studio\Documents\Arduino\vsarduinotest\vsarduinotest.vcxproj" (build target(s)).
Build succeeded.
Time Elapsed 00:00:00.06




I have a fresh VS install with SP1. No other plugins installed. 

Any ideas?
« Last Edit: Oct 18th, 2012 at 8:40pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #1 - Oct 18th, 2012 at 12:33pm
Print Post  
...more info:

output from Micro Build:

Code
Select All
Compiling 'vsarduinotest' for 'Arduino Uno'
Build Folder: C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\vsarduinotest\uno
SketchLibFolders
duino-1.0.1\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=5 Imports=1
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" test.cpp" -o test.cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\WiFi.cpp" -o .cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\WiFiClient.cpp" -o Client.cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\WiFiServer.cpp" -o Server.cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\utility\socket.c" -o ity\socket.c.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\utility\server_drv.cpp" -o ity\server_drv.cpp.o"
 

« Last Edit: Oct 18th, 2012 at 12:37pm by hobstructor »  
Back to top
 
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #2 - Oct 18th, 2012 at 12:36pm
Print Post  
part2: 


Code
Select All

C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\utility\spi_drv.cpp" -o ity\spi_drv.cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\WiFi" -I"C:\arduino-1.0.1\libraries\WiFi\utility" "C:\arduino-1.0.1\libraries\WiFi\utility\wifi_drv.cpp" -o ity\wifi_drv.cpp.o"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o test.elf" test.cpp.o" .cpp.o" Client.cpp.o" Server.cpp.o" ity\socket.c.o" ity\server_drv.cpp.o" ity\spi_drv.cpp.o" ity\wifi_drv.cpp.o" "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\vsarduinotest\uno\core.a" -L"C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\vsarduinotest\uno" -lm
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 test.elf" test.eep"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom test.elf" test.hex"
Binary sketch size: 6710 bytes (of a 32256 byte maximum) (2,5801475 secs)
Compiling 'test2' for 'Arduino Uno'
Build Folder: C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno
SketchLibFolders
:\arduino-1.0.1\hardware\tools\avr\lib\gcc\avr\4.3.2\include\;
Summary: Header=1 Prototypes=3 Imports=1
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -DVISUALMICRO_COMPILER_VER=1 -I"C:\arduino-1.0.1\hardware\arduino\cores\arduino" -I"C:\arduino-1.0.1\hardware\arduino\variants\standard" -I"C:\arduino-1.0.1\libraries\EEPROM" "
 

  
Back to top
 
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #3 - Oct 18th, 2012 at 12:36pm
Print Post  
part3:

Code
Select All
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.elf" "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.cpp.o" .o" "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\core.a" -L"C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno" -lm
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.elf" "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.eep"
C:\arduino-1.0.1\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.elf" "C:\Users\studio\AppData\Local\VMicro\Arduino\Builds\test2\uno\test2.hex"
Binary sketch size: 466 bytes (of a 32256 byte maximum) (0,3520202 secs)
 




Above log is the output after a "Build".
  
Back to top
 
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #4 - Oct 18th, 2012 at 12:38pm
Print Post  
AND... here's my source code (the Wifi-example code):

Code
Select All
#include <WiFi.h>

char ssid[] = "xxx";     //  your network SSID (name)
char pass[] = "yyyy";  // your network password
int status = WL_IDLE_STATUS;     // the Wifi radio's status

void setup() {
  //Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
 
  // check for the presence of the shield:
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    // don't continue:
    while(true);
  }
 
 // attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) {
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network:   
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }
   
  // you're connected now, so print out the data:
  Serial.print("You're connected to the network");
  printCurrentNet();
  printWifiData();

}

void loop() {
  // check the network connection once every 10 seconds:
  delay(10000);
  printCurrentNet();
}

void printWifiData() {
  // print your WiFi shield's IP address:
  IPAddress ip = WiFi.localIP();
    Serial.print("IP Address: ");
  Serial.println(ip);
  Serial.println(ip);
 
  // print your MAC address:
  byte mac[6]; 
  WiFi.macAddress(mac);
  Serial.print("MAC address: ");
  Serial.print(mac[5],HEX);
  Serial.print(":");
  Serial.print(mac[4],HEX);
  Serial.print(":");
  Serial.print(mac[3],HEX);
  Serial.print(":");
  Serial.print(mac[2],HEX);
  Serial.print(":");
  Serial.print(mac[1],HEX);
  Serial.print(":");
  Serial.println(mac[0],HEX);

}

void printCurrentNet() {
  // print the SSID of the network you're attached to:
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  // print the MAC address of the router you're attached to:
  byte bssid[6];
  WiFi.BSSID(bssid);   
  Serial.print("BSSID: ");
  Serial.print(bssid[5],HEX);
  Serial.print(":");
  Serial.print(bssid[4],HEX);
  Serial.print(":");
  Serial.print(bssid[3],HEX);
  Serial.print(":");
  Serial.print(bssid[2],HEX);
  Serial.print(":");
  Serial.print(bssid[1],HEX);
  Serial.print(":");
  Serial.println(bssid[0],HEX);

  // print the received signal strength:
  long rssi = WiFi.RSSI();
  Serial.print("signal strength (RSSI):");
  Serial.println(rssi);

  // print the encryption type:
  byte encryption = WiFi.encryptionType();
  Serial.print("Encryption Type:");
  Serial.println(encryption,HEX);
  Serial.println();
}

 

« Last Edit: Oct 18th, 2012 at 12:39pm by hobstructor »  
Back to top
 
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #5 - Oct 18th, 2012 at 12:46pm
Print Post  
hi... it's me again! Smiley


now i noticed something strange:

in the log-file:

....
"Creating "Debug\vsarduinotest.unsuccessfulbuild" because "AlwaysCreate" was specified"
.....
"Build succeeded."



Can this be the problem? If so, how to solve?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #6 - Oct 18th, 2012 at 1:27pm
Print Post  
What happens when you press F5 or (Click the Green Arrrow on the ToolBar) instead of F10/F11?

F10/F11 are not supported yet. F5 is the normal way to continue a debug session or re-build
« Last Edit: Oct 18th, 2012 at 1:30pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #7 - Oct 18th, 2012 at 1:28pm
Print Post  
I've moved this question to the bug board and switch on your email notifications in your options.
  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Cannot Upload to
Reply #8 - Oct 18th, 2012 at 8:28pm
Print Post  
F5 works just fine... 
Ok, if support for F10/F11 is missing, that explains the error. Maybe you should mention that in the tutorial (or you did but i missed it) 

Too bad though, F10/F11 it is my most frequently used debugging tool. Please fix ASAP!Smiley
« Last Edit: Oct 18th, 2012 at 8:28pm by hobstructor »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cannot Upload to
Reply #9 - Oct 18th, 2012 at 8:39pm
Print Post  
Great. 

Yes, the missing F10/F11 is an oversight that I hope to fix over the next week.

I think I've had another report about this but forgot in the mass of discussions. I've marked this thread as a favorite as a reminder.

Thanks for the info.
  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #10 - Oct 18th, 2012 at 8:48pm
Print Post  
Thanks...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #11 - Oct 19th, 2012 at 10:27pm
Print Post  
Done. F10/F11 supported in next release
« Last Edit: Oct 19th, 2012 at 10:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #12 - Dec 21st, 2012 at 11:26pm
Print Post  
Still no functionality for F10/F11?

Installed:
- VisualMicroArduino version v12.11.0403
- VisualMicro-Debug Tools & visualizations v12.11.0402 
- VisualMicro v12.10.2601

(what is the latest version and where can i see that info on your website?)

I'm currently using the simple AnalogRead-example.

Can't get the step-function to work. 

Settings:

Micro Debug = Full
Enable Break/pause = true
Jump to source = true

I don't know if it is relevant info, but i can't even get the "stop at breakpoint" to work.
I've used breakpoint->When hit->Stop on execution and  "jump to breakpoint/tracepoint" is activated

Am i missing something?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #13 - Dec 22nd, 2012 at 1:07am
Print Post  
Hi,

1)
"Jump to breakpoint" is automatically activated if break/pause is enabled. The feature is for when break/pause is not enabled.

2)
You can see the vm version via tools>options>visual micro>version. The current download version is shown on the codeplex download page. What version are you running?

You only need two things installed

a) Visual Micro plugin from codeplex
b) Debugger upgrade (is just some additional support files)

3) Quote:
v12.10.2601

This version should have been automatically removed when 12.1104 was installed? Does "Control Panel>Add or Remove Programs" show one install of "Visual Micro for Arduino" and one for "Visual Micro Debugger"?

4)
I assume you have normal trace working and see a trace message for the breakpoint you expect to stop at? 

5)
Are you using the main serial ports or software serial?

Thanks
« Last Edit: Dec 22nd, 2012 at 1:08am by Tim@Visual Micro »  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #14 - Dec 25th, 2012 at 1:28pm
Print Post  
Hi...


3) My add och remove programs showed: 
- Visual Micro -Debug tools and visualizations v12.11.0402
- Visual Micro for Arduino v12.10.2601
- Visual Micro for Arduino v12.11.0403

I uninstalled everything, downloaded the latest versions (Debug v3.3) and reinstalled, now i have:
- Visual Micro -Debug tools and visualizations v12.11.0402
- Visual Micro for Arduino v12.11.0403

Now the jump to source works just fine, aswell as the trace messages and the expression window. BUT... F11 have the same bahavior as F5, instead of stepping through the code, it runs to the next breakpoint (with stop on execusion).

Or... if i run without any breakpoints, F10/F11 builds the program all over again everytime i press it. Expected bahavior is to run the code each row at a time.


5) i believe i'm using the standard main serial ports (USB connected to Arduino). 
" Serial.begin(9600);"
"Remote Transport" is blank/default (hardwareSerial?)


I'm using: Visual Studio 2010 Professional 10.0.40219.1 SP1Rel With .NET Framework: 4.0.30319 SP1Rel
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #15 - Dec 25th, 2012 at 3:03pm
Print Post  
Hi,

That sounds like it is working well. Arduino does not have the facility to step through each source line of source code.

The best we can do is step from breakpoint to breakpoint.

One user has suggested allowing to step through a certain block of code so that might help in future versions.

Thanks for the update
  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #16 - Dec 31st, 2013 at 2:06pm
Print Post  
Any updates regarding this? (stepping through the code)?

That is the most crucial and most frequently used function of all debugging-tools for me.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #17 - Dec 31st, 2013 at 2:22pm
Print Post  
Hi,

Well the first thing to consider is that how the debugger works and why it exists. The only debugging for Arduino is via hacking the code with commands such as Serial.print(). So the debugger is designed to remove the need to do that.

Because Arduino does not have debugging Visual Micro has to inject commands such as Serial.print() into a temp copy of the code during compilation. Visual Micro injects serial print commands with a known format which it then  intercepts and uses to show debugger status or handle break points.

So this means that to cause the Arduino to break we have injected code to the end of the line of code that contains the breakpoint. The break/pause is simply an Arduino loop waiting for a Serial.read() 'c' character to be received meaning F5 has been pressed.

With this mind, hopefully you can imagine that to break on every line with the current system would mean adding too much injected code and anyway it would be too difficult to work out how to do that.

We are investigating a new ways to handle some areas of debug. For example being able to query the value or update almost any variable or expression during a break/pause (not just ones declared for watch at compile time). Also the ability to determine better information about structures and arrays etc. All this will make the debugger more intelligent and is already alpha coded and mostly working. 

We hope this new system will also lead to the ability to step code however this is at design stage, is complicated and we might hit a brick wall.

Hopefully around March 2014 we will start to apply this new system (by default or optionally).

Sorry I can't be more helpful. If you need real micro debugging like a windows app then the Microsoft .Net Micro Framework might be worth looking into, unfortunately it doesn't work with Arduino but it is okay.
  
Back to top
IP Logged
 
hobstructor
Junior Member
**
Offline


Posts: 17
Joined: Oct 16th, 2012
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #18 - Dec 31st, 2013 at 2:27pm
Print Post  
Thanks for the explanation Tim.
I now understand why it is a difficult task.

If it were possible to inject wait(); commands in real time, you could've done it after each line as we step through the code.

F11-> inject wait(); at the end of next line.

I guess you guess know what you're doing, so i will wait for future releases! Smiley



  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Resolved: Cannot Upload or Step with F10/F11. Use F5 until next release
Reply #19 - Dec 31st, 2013 at 3:02pm
Print Post  
Hi,

Yes agreed with the wait() but what constitutes the end of a line. Atmel or Visual Studio don't provide this type of information about source code. Visual Micro has to split strings and determine where an if{} or while{} starts and ends. This is difficult and not a perfect science. The current debugger relies upon users not adding a breakpoint to a highly complex set of single line nested "if" statements and then some. 

When time permits we will try out the simple option but I suspect it will easily fail or have to skip a few lines of code here and there. Both options might cause support hassles so the more complex route might be the only reliable option.

Thanks for your understanding.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint