Sysprogs forums › Forums › VisualGDB › VS 2022 build cancelled
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by
bezalel_bnc.
-
AuthorPosts
-
April 5, 2022 at 05:09 #32471
bezalel_bnc
ParticipantHi,
I have installed Visual Studio Community edition and VisualGDB 5.6, on my windows 10 PC.
I am following the guide here: https://visualgdb.com/tutorials/arm/tiva/ with the example project
I am trying to connect to the Tiva EK-TM4C123GXL via openOCD.
When trying to debbug, the IDE seems to “hang” and then says that the build has encountered an error, but no error in shown. The output windows then writes:
Build started…
1>—— Build started: Project: launchpadTest, Configuration: Debug VisualGDB ——
1>A task was canceled.
1>A task was canceled.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========I have tried the Keil compiler as well as the GCC.
What am I missing? Why wont the VS build my project?
TIA,
April 5, 2022 at 09:08 #32473support
KeymasterHi,
Strange. Could you please attach a screenshot of your Help->About VisualGDB window so that we could see what is going on?
April 6, 2022 at 01:04 #32477bezalel_bnc
ParticipantHi,
I am attaching the about.

-
This reply was modified 4 years ago by
bezalel_bnc.
Attachments:
You must be logged in to view attached files.April 6, 2022 at 08:24 #32483support
KeymasterThanks for the screenshot. This build should work just fine. Please try running the build from command line:
msbuild.exe <.sln file> /p:Platform=VisualGDB /p:Configuration=Debug
If it also hangs, please try obtaining a stack trace of the msbuild.exe process as shown here.
If the manual build works, but the build from VS does not, please try closing ALL VS instances, starting just one, and doing the build again. Once it hangs, please try checking the call stacks of all MSBuild.exe processes (VS would normally launch multiple ones) and searching for the ones having VisualGDB methods on the stack.
April 6, 2022 at 23:40 #32485bezalel_bnc
ParticipantThank you for your reply.
To run MSbuild I needed to add the correct path to the environment variable PATH.
After that, I was able to run MSbuild in CMD. seemed to work. Opened a new instance of VS and am able to bulid :).
April 7, 2022 at 08:23 #32489support
KeymasterGood to know it works. That said, Visual Studio should normally set the PATH automatically, so the problem could have been solved by simply restarting VS.
April 10, 2022 at 00:18 #32495bezalel_bnc
ParticipantHi,
I have restarted VS a couple of times, but that didn’t seems to help.
Makes sense that VS would have configured the PATH automatically, not sure why it didn’t.
Thank you for your help
-
This reply was modified 4 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.