Visual Micro
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Usb/Serial/WiFi Debugging >> Avoid rebuild all on every debug session
https://www.visualmicro.com/forums/YaBB.pl?num=1622574337

Message started by Egol on Jun 1st, 2021 at 8:05pm

Title: Avoid rebuild all on every debug session
Post by Egol on Jun 1st, 2021 at 8:05pm
How can I avoid rebuild all on every small change I'm doing to only one file?
If I'm adding a breakpoint or change one what is the fastest way to reload it to the target? Must I rebuild all?
If I just want to restart a debug session when no change was done to the code or to the breakpoints, how can I do it?

Title: Re: Avoid rebuild all on every debug session
Post by Tim@Visual Micro on Jun 1st, 2021 at 8:32pm
Hi,

If you are using the serial/wifi debugger then you only need to open the serial monitor. Visual Micro keeps track of which projects were uploaded in debug mode, the serial monitor then uses the same configuration to know if a debug session should be started. Same applies to stop the debugger, disconnecting or closing the serial window stops the debug on the IDE side of things but the mcu will still be sending (or awaiting) debug commands until a Release build is uploaded. When opening/starting the serial monitor some boards reset if the Dtr button is enabled. In those cases you can use the Dtr to control if you want the board to restart or to continue when the serial connects.

For hardware debugging, using "Debug>Attach to Process" instead of a build/upload/debug command will attach to a running mcu. In this case, attaching to a board that does not have a debug build on it, might give a strange or useless debug experience.

Title: Re: Avoid rebuild all on every debug session
Post by Egol on Jun 2nd, 2021 at 5:09pm
Thanks for those answers.
I just left with one open issue from my post - every time I press the "build and upload" button all the files in my project are compiled, even if I did not change them, I expect that only the changed files will be rebuild and not all the files. No?

Title: Re: Avoid rebuild all on every debug session
Post by Tim@Visual Micro on Jun 2nd, 2021 at 6:32pm
Are you sure all the files are rebuilt or maybe it is the deep search scan? Please follow the guide in the yellow box above so that we can see what is happening.

Thanks

Visual Micro » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2021. All Rights Reserved.