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 How to use the Debug / Restart menu ? (Read 960 times)
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
How to use the Debug / Restart menu ?
Feb 22nd, 2022 at 8:39am
Print Post  
I would like to use the Debug / Restart menu, which is also shown in the attached image.
I am using ESP-Prog JTAG debugger.
I would like to start the program again (and debug) from scratch several times without reloading the program.
Is it possible ?

Safi
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: How to use the Debug / Restart menu ?
Reply #1 - Feb 22nd, 2022 at 9:46am
Print Post  
Thanks for the report.

The Debug > Attach to Process action can be modified to cause the board to reset as it attaches without the upload happening.

If you add a Local board.txt to your project (vMicro > Add Code > Add Local Board.txt), and put the below entry in:
Code
Select All
vs-cmd.Debug.AttachtoProcess.tools.esp32prog.server.initCmd=-c "init; reset halt" 



Then save the file, and try the Debug > Attach to Process action again.
  
Back to top
 
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: How to use the Debug / Restart menu ?
Reply #2 - Feb 23rd, 2022 at 7:37am
Print Post  
I modified the Board.txt file.
The Restart menu still does not work.
During debugging, the Restart menu remains inactive.
If debug is not running, the Restart menu will disappear.
What else do I need to do to use Restart?

safi
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: How to use the Debug / Restart menu ?
Reply #3 - Feb 23rd, 2022 at 9:38am
Print Post  
The Restart button is not available to restart the debugging session in this configuration.

Once the entry is added, the Debug > Attach to Process action should reset the board, providing the same facility as the Restart button.
  
Back to top
 
IP Logged
 
espprog
Junior Member
**
Offline


Posts: 34
Joined: Jan 25th, 2022
Re: How to use the Debug / Restart menu ?
Reply #4 - Feb 23rd, 2022 at 11:04am
Print Post  
Thanks.
It works!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint