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) Unable to debug: (Read 9260 times)
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Unable to debug:
Dec 31st, 2014 at 2:12pm
Print Post  
Code (C++)
Select All
Compiling 'BathroomFan' for 'Arduino Nano w/ ATmega328'
Binary sketch size: 12,570 bytes (used 41% of a 30,720 byte maximum) (2.61 secs)
Compiling debug version of 'BathroomFan' for 'Arduino Nano w/ ATmega328'
BathroomFan.ino:In file included from
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)'
VM_DBG.h:299: error: 'transport' was not declared in this scope
BathroomFan.ino:In function 'void setup()'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'begin'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:63: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:70: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:70: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:In function 'void loop()'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:84: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:In function 'void OnOneSecondTimeoutHook()'
BathroomFan.ino:170: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:170: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:176: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:176: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:192: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:192: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:210: error: 'class VisualMicroDebug' has no member named 'transport'
BathroomFan.ino:210: error: 'class VisualMicroDebug' has no member named 'transport'
VM_DBG.cpp:In file included from
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int)'
VM_DBG.h:299: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'int VisualMicroDebug::breakWait(uint8_t)'
VM_DBG.cpp:382: error: 'transport' was not declared in this scope
VM_DBG.cpp:398: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'void VisualMicroDebug::sendContinuedACK(uint8_t)'
VM_DBG.cpp:498: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'void VisualMicroDebug::sendMessage(const char*)'
VM_DBG.cpp:512: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'void VisualMicroDebug::printPinsAnalog()'
VM_DBG.cpp:653: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'uint8_t VisualMicroDebug::readVariableTextDataType()'
VM_DBG.cpp:839: error: 'transport' was not declared in this scope
VM_DBG.cpp:In member function 'uint8_t VisualMicroDebug::readVariableTextLength()'
VM_DBG.cpp:844: error: 'transport' was not declared in this scope
VM_DBG.cpp:In function 'void no_lvalue_err()'
VM_DBG.cpp:855: error: 'class VisualMicroDebug' has no member named 'transport'
VM_DBG.cpp:In member function 'void VisualMicroDebug::fetchVarData()'
VM_DBG.cpp:920: error: 'transport' was not declared in this scope
Error compiling
.
.......................................................
***** Visual Micro Debugger Compiler Error Help *******
.......................................................
.
There are a few things that can cause the debug compile to fail. Such as Breakpoints in invalid locations, invalid breakpoint conditions or 'when hit' messages.
.
Please study the error shown above this message to see if it gives indication of the problem. For syntax errors try to double click the error to see if that shows code with an obvious mistake
You might also need to review your code and/or breakpoint settings
.
It is also possible that the hardware you are using does not support the default debugger transports (Serial, SerialUSB etc.) or that the serial port has been manually initialized at a speed other than 115200 (the debugger default)
In these cases there are properties in the Project 'Property Window' that enable the default settings to be altered
.
wiki: http://www.visualmicro.com
forum: http://www.visualmicro.com/forums
.
.
tip: 'Debug>Start without debugging' will always compile and upload without the debugger. The following notes only apply to 'Debug>Start'
 



I don't know what to do about this? The program compiles file, but i cant debug. I have added 5 breakpoints.

Any idea how to proceed?

I'm using the paid latest version with Atmel Studio.
« Last Edit: Dec 31st, 2014 at 2:12pm by j12 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to debug:
Reply #1 - Dec 31st, 2014 at 3:03pm
Print Post  
Please zip the sketch folder and any sub folders then email to info [at] visualmicro.com

Thanks
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: Unable to debug:
Reply #2 - Dec 31st, 2014 at 5:41pm
Print Post  
Thanks- I've emailed the project and the libs.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to debug:
Reply #3 - Dec 31st, 2014 at 6:10pm
Print Post  
Thanks for the files.

From what you sent it looks like the last upload attempt was not a debug attempt

However looking at the debug config I see you have set the RemoteTransport to FastSerial. You need to clear that property for sure, it will be removed in the next release because it relates to code that is no longer available in drone projects.

Thanks
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: Unable to debug:
Reply #4 - Dec 31st, 2014 at 6:20pm
Print Post  
Thanks for replying... It's my first time with Arduino and i've not used visual studio since .net 2003 so it's a bit of a learning curve.

What should i set it to? HardwareSerial?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to debug:
Reply #5 - Dec 31st, 2014 at 6:38pm
Print Post  
Leave it empty, leave everything empty for the defaults

and check out the debugger docs on the "Documentation" page if you need to change things for any reason such as changing debug port.

Thanks
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: Unable to debug:
Reply #6 - Dec 31st, 2014 at 7:09pm
Print Post  
Thanks- I'm debugging now. It would appear that the line of code on which a break point is placed is executed before the breakpoint is hit.
Is this a bug?

I added a breakpoint to this code and it is printed to the serial port then the breakpoint is hit:

Code (C++)
Select All
Serial.printf( "Radio Link Status: %d\n",			g_bIsLinkOK ); 

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to debug:
Reply #7 - Dec 31st, 2014 at 7:20pm
Print Post  
Hi, no not a bug and it is explained in the docs.

thanks
  
Back to top
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: Unable to debug:
Reply #8 - Dec 31st, 2014 at 10:52pm
Print Post  
I added this to a breakpoint:
var: {nRequiredFanSpeedPercent=?} 

And i get this:

Compiling debug version of 'BathroomFan' for 'Arduino Nano w/ ATmega328'
VM_DBG.h:In member function 'void VisualMicroDebug::setVariable(T&, int, int) [with T = short unsigned int]'
VM_DBG.h:setVariable(T&, int) [with T = short unsigned int]'
BathroomFan.ino:instantiated from here
VM_DBG.h:296: error: invalid conversion from 'short unsigned int' to 'char*'
VM_DBG.h:296: error:   initializing argument 3 of 'static void VisualMicroDebug::vmsetvar(char*, byte, char*)'
Error compiling
.

  
Back to top
 
IP Logged
 
j12
Junior Member
**
Offline


Posts: 24
Joined: Dec 21st, 2014
Re: Unable to debug:
Reply #9 - Jan 1st, 2015 at 12:33am
Print Post  
Fixed it, unsigned short and bool types not supported..
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint