Update:
After going though the git history. I found out that someone from my team has added a “PreDebugAction” in the vgdbcmake. I disabled it for now by removing that section from vgdbcmake. Can you please guide me, how can I disable it from GUI and why It was causing issues with flashing code in debug mode?
</CustomBuild>
<CustomDebug>
<PreDebugActions>
<CustomActionBase xsi:type="CommandLineAction">
<SkipWhenRunningCommandList>false</SkipWhenRunningCommandList>
<RemoteHost>
<HostName>BuildMachine</HostName>
<Transport>BuiltinShortcut</Transport>
</RemoteHost>
<Command>PATH-TO-EXE</Command>
<Arguments>Arguments-to-EXE</Arguments>
<WorkingDirectory>EXE-WorkingDir</WorkingDirectory>
<BackgroundMode>false</BackgroundMode>
</CustomActionBase>
</PreDebugActions>
<PostDebugActions />
<DebugStopActions />
<BreakMode>Default</BreakMode>
<CustomBreakCommand>
<SkipWhenRunningCommandList>false</SkipWhenRunningCommandList>
<RemoteHost>
<HostName>BuildMachine</HostName>
<Transport>BuiltinShortcut</Transport>
</RemoteHost>
<BackgroundMode xsi:nil="true" />
</CustomBreakCommand>
</CustomDebug>