Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Action Breakpoint jumps to next string (Read 250 times)
Kabron
Junior Member
**
Offline



Posts: 95
Action Breakpoint jumps to next string
Aug 17th, 2019 at 2:26pm
 
On starting debug session Action Breakpoint suddenly jumps to another string and error message occured.
Code:
Breakpoint 2, loop () at D:\Arduino\Proj\ESP32\M5Stack\MAX30102\RD117_ARDUINO/RD117_ARDUINO.ino:119
119	    Serial.print(aun_red_buffer[i], DEC);
1133823549-var-create: unable to create variable object
-var-create: unable to create variable object
@"Target halted. PRO_CPU: PC=0x400EDE22             APP_CPU: PC=0x400D0D96 (active)\n" 

Back to top
 

Before.jpg (53 KB | 2 )
Before.jpg
After.jpg (63 KB | 2 )
After.jpg
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Action Breakpoint jumps to next string
Reply #1 - Aug 17th, 2019 at 5:03pm
 
What do you click to start debugging?

What optimization setting have you got set/disabled?
Back to top
« Last Edit: Aug 17th, 2019 at 5:04pm by Visual Micro »  
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #2 - Aug 17th, 2019 at 5:08pm
 
1. F5
2. No optimization
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Action Breakpoint jumps to next string
Reply #3 - Aug 17th, 2019 at 5:27pm
 
Thanks, can you please email the RD117_ARDUINO\RD117_ARDUINO.cpp fro the temp build folder to the address in the yellow box.

The temp build folder can be seen when verbose output or "show build folder" is enabled.

Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #4 - Aug 17th, 2019 at 5:36pm
 
Done
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Action Breakpoint jumps to next string
Reply #5 - Aug 17th, 2019 at 5:40pm
 
Thanks, sorry I need the matching .ino file as well.
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #6 - Aug 18th, 2019 at 7:16am
 
Done.
One more strange thing:
There is no loop() function in function list
Back to top
 
 
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #7 - Aug 18th, 2019 at 11:18am
 
Generally, I tried to follow "Drawing Graphs Using @Plot Windows" article directions.
Finally I made separate test project, similar that in article:
Code (C++):
#define apin 35
#define DAC  25

void setup()
{
	Serial.begin(115200);
}
//{@Plot.MyWindow.Sensor sensorValue}
void loop()
{
	int sensorValue = analogRead(apin);
	float voltage = sensorValue*2.0;
	dacWrite(DAC, voltage);
} 



and obtained the same results:
jumping to next line and
-var-create: unable to create variable object
Back to top
« Last Edit: Aug 18th, 2019 at 11:21am by Kabron »  
 
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #8 - Aug 18th, 2019 at 11:31am
 
Definitely it related with debug mode. It works with serial debug and do not with hardware GDB.
I found maybe similar issue:
  https://sysprogs.com/w/forums/topic/var-create-unable-to-create-variable-object/
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Action Breakpoint jumps to next string
Reply #9 - Aug 18th, 2019 at 12:21pm
 
Hi,

I suspect that in GDB mode line numbers are confused because you have added an include for Arduino.h to your code. We will fix that bug in the next release, for now I suggest you remove the #include because it is not needed.

#include <Arduino.h>

Thanks
Back to top
 
WWW  
IP Logged
 
Kabron
Junior Member
**
Offline



Posts: 95
Re: Action Breakpoint jumps to next string
Reply #10 - Aug 18th, 2019 at 12:46pm
 
There is no #include <Arduino.h> in the test project. But  symptoms remains.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10474
United Kingdom
Re: Action Breakpoint jumps to next string
Reply #11 - Aug 18th, 2019 at 6:36pm
 
I have made some tests and the issue seems related to the tool chain or hardware you are using. We are not seeing the problem with any of our tests.

Please provide the info in the yellow box above so we can see what you are working with.
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print