VS Arduino | |
Visual Micro >> Ideas, Suggestions and Related Tools >> Show Message before Build
https://www.visualmicro.com/forums/YaBB.pl?num=1572691191 Message started by xmen on Nov 2nd, 2019 at 10:39am |
Title: Show Message before Build Post by xmen on Nov 2nd, 2019 at 10:39am
I have multiple variable settings in code and before every upload I would like VS to show a message containing configuration name("Debug" or "Release") and show an integer value from code's global variable.
like variable in code is like int Number = 900023; so the VS should show 900023 value in message dialog Is there any way to do that or could this be added in future ? using VS 2017 |
Title: Re: Show Message before Build Post by Visual Micro on Nov 3rd, 2019 at 1:16pm
Sounds like you need to write a small .exe and add it as a custom arduino event/action. Your .exe can scan code files and show a dialog.
Alternaively add a breakpoint to the setup() that shows the {variable} and make the breakpoint stop/wait for F5. In this case you would need to upload. Maybe you could also print a warning from inside your code using the #error type of messages |
Title: Re: Show Message before Build Post by xmen on Nov 4th, 2019 at 7:07am
thats a good idea but when I set Pre-Built Event to
[code]ECHO "make changes"[/code] nothing happens inside Project Properties > Configuration Properties > Build Events > Pre-Built Event There is no "custom arduino event/action" |
VS Arduino » Powered by YaBB 2.6.12! YaBB Forum Software © 2000-2024. All Rights Reserved. |