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) Esp8266 - Project builds, debugger launches, then nothing (SOLVED - Switch Off Serial DTR) (Read 6245 times)
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Esp8266 - Project builds, debugger launches, then nothing (SOLVED - Switch Off Serial DTR)
Feb 17th, 2017 at 2:14am
Print Post  
I've just installed your extension for VS 2017. All seemed to go OK. I created a new project, set Arduino version to 1.6/1/8 (I have 1.8), set the board to NodeMCU 1.0, then pasted into the .ino file a program that works fine in Arduino IDE. It builds without error, loads to the board (I can see the serial LED blinking) then announces "launching debugger..." then nothing. The program flashes some LEDs when it runs, so i can tell it's not running on my board.

Any thoughts?
« Last Edit: Feb 19th, 2017 at 10:44pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #1 - Feb 17th, 2017 at 1:14pm
Print Post  
Hi,

Please change the tool bar from Debug to Release and then upload again.

Thanks
  
Back to top
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #2 - Feb 17th, 2017 at 1:46pm
Print Post  
Yep, that did it, thanks.

I just paid for the upgrade so the debugging will actually be available - looks like a cool tool.
  
Back to top
 
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #3 - Feb 17th, 2017 at 1:52pm
Print Post  
Er... I get the same issue with the paid version when I build in debug mode.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #4 - Feb 17th, 2017 at 3:07pm
Print Post  
Hi,

Did you restart the ide after adding the license key?

Did you switch on "tools>options>visual micro>pause pro features" by mistake?
  
Back to top
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #5 - Feb 17th, 2017 at 4:42pm
Print Post  
OK, I tried this on a second machine - same results. Restarted IDE, checked that "pause pro features" was false.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #6 - Feb 17th, 2017 at 4:44pm
Print Post  
Is there a breakpoint in the code?

You can zip and email your project if you want, it will save asking about what you are expecting to debug.

Email to info[at]visualmicro.com
« Last Edit: Feb 17th, 2017 at 4:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #7 - Feb 17th, 2017 at 5:35pm
Print Post  
Just sent.

I tried with a breakpoint enabled, and without.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #8 - Feb 17th, 2017 at 8:36pm
Print Post  
Hi,

There are no breakpoints in the BreatheTest.zip if that was from you.

Breakpoints are saved in the .sln so you need to close and save the solution to be sure they have been written to disk before zipping. Thanks

Questions


Is "vMicro>General>Tutorial Mode" switched on?
Is "vMicro>Debugger>Automatic Debugging" on?

  
Back to top
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #9 - Feb 17th, 2017 at 8:48pm
Print Post  
Sure, I'll send that - but shouldn't it run without breakpoints?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #10 - Feb 17th, 2017 at 8:53pm
Print Post  
I see, yes it should run without breakpoints. 

OTA should work immediately and Serial debug work well with the following

1)
Are the Dtr and Rts Off on the serial monitor when it opens?

2)
Is the serial monitor auto-reconnect On


A screen shot with debug started might help in case I can see something less obvious.

+ confirm that it is working ok when in Release mode. I think you confirmed that earlier but just want to check.
« Last Edit: Feb 17th, 2017 at 8:55pm by Tim@Visual Micro »  
Back to top
IP Logged
 
occam man
Newbies
*
Offline


Posts: 8
Joined: Feb 17th, 2017
Re: Project builds, debugger launches, then nothing
Reply #11 - Feb 17th, 2017 at 9:02pm
Print Post  
Got it - one of the serial lines, either dtr or rts (I forget which), is on by default - when I toggled it off, debug started working.

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project builds, debugger launches, then nothing
Reply #12 - Feb 17th, 2017 at 9:17pm
Print Post  
Great thanks very much for the update.

For normal arduino boards the dtr needs to be on which causes the board to reset when serial starts. This prevents missed messages with the board starting up very quickly.

The dtr is forced on (its optional) however visual micro is supposed to prevent that for boards that have a certain config setting. I will look to see if nodeMCU has the setting or why the dtr was on for you.

The rts isn't used for most arduino boards however for node mcu it should always be off. Toggling the rts on/off will reset the board.

Thanks again, I'll look at making the solution more obvious!

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